Created
February 7, 2016 06:19
-
-
Save jmettes/5807bd7932e7aa69d2bf to your computer and use it in GitHub Desktop.
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
#include <SPI.h> | |
#include <RF24.h> | |
#include <BTLE.h> | |
RF24 radio(9,10); | |
BTLE btle(&radio); | |
char * msg = "hi"; | |
uint8_t len = 2; | |
void setup() { | |
Serial.begin(9600); | |
while (!Serial) { } | |
Serial.println("BTLE advertisement sender"); | |
btle.begin("two"); | |
} | |
void loop() { | |
btle.advertise(msg,len); | |
btle.hopChannel(); | |
Serial.print("."); | |
// delay(100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment