Added sendRegistration function.
This commit is contained in:
parent
fc2c86a1b6
commit
9ee89bd767
10
src/main.cpp
10
src/main.cpp
|
@ -49,6 +49,16 @@ void setup() {
|
|||
radio.printDetails();
|
||||
|
||||
// Start the radio listening for data
|
||||
}
|
||||
|
||||
void sendRegistration(void) {
|
||||
char sendBuffer[32];
|
||||
|
||||
memset(sendBuffer, 0, 32);
|
||||
sendBuffer[0] = 'r';
|
||||
strncpy(sendBuffer+1, "testClient", 10);
|
||||
radio.stopListening();
|
||||
radio.write(sendBuffer, 11);
|
||||
radio.startListening();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue