Compare commits
No commits in common. "f5c2200e7974c34ad77382ed5141f7a58b2908b4" and "b2e0851c77b9ebf6f61280a6728679114a37473e" have entirely different histories.
f5c2200e79
...
b2e0851c77
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@ -300,16 +300,18 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
|
||||||
// Save Old Mode
|
// Send the DMX packet.
|
||||||
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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user