This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MESSAGE_SIZE 18 //Message is capped at 18 bytes due to the BLE profile. If we try to get any more we simply get the same values on loop | |
byte message[MESSAGE_SIZE]; | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
while (Serial.available() > 0) { | |
Serial.setTimeout(100); |