Skip to content

Instantly share code, notes, and snippets.

@jmettes
Created February 7, 2016 06:19
Show Gist options
  • Save jmettes/5807bd7932e7aa69d2bf to your computer and use it in GitHub Desktop.
Save jmettes/5807bd7932e7aa69d2bf to your computer and use it in GitHub Desktop.
#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