Remove string print from BLE intepreter

This commit is contained in:
Glahera 2024-11-05 09:31:34 +07:00
parent 9f03a3c477
commit f5c2200e79

View File

@ -300,18 +300,16 @@ void setup() {
void loop() {
// Send the DMX packet.
// Save Old Mode
int modeOld = mode;
// notify changed value
if (deviceConnected) {
Serial.printf("\nI received the following string: %s",String(pCharacteristic->getValue()));
Serial.printf("\nI received the following bytes: ");
uint8_t* btMessage = pCharacteristic->getData();
for (int i = 0; i < sizeof(btMessage); i++){
Serial.printf("%d ",btMessage[i]);
};
delay(100);
}
// disconnecting
if (!deviceConnected && oldDeviceConnected) {