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