diff --git a/examples/Bluetooth/PS3SPP/PS3SPP.ino b/examples/Bluetooth/PS3SPP/PS3SPP.ino index 098b4278..ed02f739 100644 --- a/examples/Bluetooth/PS3SPP/PS3SPP.ino +++ b/examples/Bluetooth/PS3SPP/PS3SPP.ino @@ -33,7 +33,7 @@ void setup() { output.reserve(200); // Reserve 200 bytes for the output string } void loop() { - Usb.Task(); // The SPP data is actually not send until Usb.Task() is called + Usb.Task(); // The SPP data is actually not send until this is called, one could call SerialBT.send() directly as well if(SerialBT.connected) { if(firstMessage) { diff --git a/examples/Bluetooth/SPP/SPP.ino b/examples/Bluetooth/SPP/SPP.ino index d488a7a4..c7732955 100644 --- a/examples/Bluetooth/SPP/SPP.ino +++ b/examples/Bluetooth/SPP/SPP.ino @@ -22,7 +22,8 @@ void setup() { Serial.print(F("\r\nSPP Bluetooth Library Started")); } void loop() { - Usb.Task(); // The SPP data is actually not send until Usb.Task() is called + Usb.Task(); // The SPP data is actually not send until this is called, one could call SerialBT.send() directly as well + if(SerialBT.connected) { if(firstMessage) { firstMessage = false; diff --git a/examples/Bluetooth/SPPMulti/SPPMulti.ino b/examples/Bluetooth/SPPMulti/SPPMulti.ino index 00a4d7b3..173156e5 100644 --- a/examples/Bluetooth/SPPMulti/SPPMulti.ino +++ b/examples/Bluetooth/SPPMulti/SPPMulti.ino @@ -34,7 +34,8 @@ void setup() { Serial.print(F("\r\nSPP Bluetooth Library Started")); } void loop() { - Usb.Task(); // The SPP data is actually not send until Usb.Task() is called + Usb.Task(); // The SPP data is actually not send until this is called, one could call SerialBT.send() directly as well + for(uint8_t i=0;iconnected) { if(firstMessage[i]) {