Skip to content

Instantly share code, notes, and snippets.

@nickswalker
nickswalker / byteStream.ino
Last active August 29, 2015 13:58 — forked from volca/serial.ino
Get Bytes from BLE Serial Connection (BlueShield)
#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);