Added sendRegistration function.

This commit is contained in:
Dirk Jahnke 2018-11-15 20:36:50 +01:00
parent fc2c86a1b6
commit 9ee89bd767
1 changed files with 10 additions and 0 deletions

View File

@ -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();
}