Slightly edited NimBLE_Stream_Server.
Using Adafruit nrf52840 Express with platform n-able.
Pretty sure this is supposed to print to the BLE connection:
// Using familiar Serial-like methods!
bleStream.print("Hello from BLE Server! Time: ");
bleStream.println(millis());
int heap = 1234;
// You can also use printf
bleStream.printf("Free heap: %d bytes\n", heap);
Serial.println("Sent data to client via BLE stream");
"Free heap" doesn't print to BLE, but instead shows up in the USB serial monitor.
Sent data to client via BLE stream
Free heap: 1234 bytes
Sent data to client via BLE stream
Free heap: 1234 bytes
Sent data to client via BLE stream
Slightly edited NimBLE_Stream_Server.
Using Adafruit nrf52840 Express with platform n-able.
Pretty sure this is supposed to print to the BLE connection:
"Free heap" doesn't print to BLE, but instead shows up in the USB serial monitor.