Compare commits

...

4 Commits

2 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1,8 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
"version": "0.2.0",
"configurations": [
]
}

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) {