While not ideal, but you can use the MIDI protocol that is supported over the Camera Connection Kit for lightning ports, or with a regular USB-C cable for USB-C ports.
While the MIDI protocol is pretty old it supports sending data in MIDI System Exclusive messages. It should work just fine for any type of devices, not just musical instruments.
Topic:
App & System Services
SubTopic:
Drivers
Tags: