I'm making a custom gamepad with an ESP32 and the joystick output is read by an ADC using
uint16_t analogRead(uint8_t pin);. Now that I want to send the data and receive and parse it, I ran into a problem. The BluetoothSerial library I'm using only has this function for sending data:
size_t write(uint8_t c);
And the only other function I know of is this:
size_t Print::printf(const char *format, ...);
However, I don't want to convert the data to characters. Is there a way of sending integer/float/double etc bytes directly without converting them to characters?