[RF69] Fixed examples
This commit is contained in:
parent
7bd39bdda6
commit
50d8c42bda
2 changed files with 13 additions and 13 deletions
|
@ -38,7 +38,7 @@ void setup() {
|
||||||
// NOTE: calling this method will autmatically enable
|
// NOTE: calling this method will autmatically enable
|
||||||
// address filtering (node address only)
|
// address filtering (node address only)
|
||||||
Serial.print(F("[RF69] Setting node address ... "));
|
Serial.print(F("[RF69] Setting node address ... "));
|
||||||
state == rf.setNodeAddress(0x02);
|
state = rf.setNodeAddress(0x02);
|
||||||
if (state == ERR_NONE) {
|
if (state == ERR_NONE) {
|
||||||
Serial.println(F("success!"));
|
Serial.println(F("success!"));
|
||||||
} else {
|
} else {
|
||||||
|
@ -51,7 +51,7 @@ void setup() {
|
||||||
// NOTE: calling this method will autmatically enable
|
// NOTE: calling this method will autmatically enable
|
||||||
// address filtering (node or broadcast address)
|
// address filtering (node or broadcast address)
|
||||||
Serial.print(F("[RF69] Setting broadcast address ... "));
|
Serial.print(F("[RF69] Setting broadcast address ... "));
|
||||||
state == rf.setBroadcastAddress(0xFF);
|
state = rf.setBroadcastAddress(0xFF);
|
||||||
if (state == ERR_NONE) {
|
if (state == ERR_NONE) {
|
||||||
Serial.println(F("success!"));
|
Serial.println(F("success!"));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -38,7 +38,7 @@ void setup() {
|
||||||
// NOTE: calling this method will autmatically enable
|
// NOTE: calling this method will autmatically enable
|
||||||
// address filtering (node address only)
|
// address filtering (node address only)
|
||||||
Serial.print(F("[RF69] Setting node address ... "));
|
Serial.print(F("[RF69] Setting node address ... "));
|
||||||
state == rf.setNodeAddress(0x01);
|
state = rf.setNodeAddress(0x01);
|
||||||
if (state == ERR_NONE) {
|
if (state == ERR_NONE) {
|
||||||
Serial.println(F("success!"));
|
Serial.println(F("success!"));
|
||||||
} else {
|
} else {
|
||||||
|
@ -51,7 +51,7 @@ void setup() {
|
||||||
// NOTE: calling this method will autmatically enable
|
// NOTE: calling this method will autmatically enable
|
||||||
// address filtering (node or broadcast address)
|
// address filtering (node or broadcast address)
|
||||||
Serial.print(F("[RF69] Setting broadcast address ... "));
|
Serial.print(F("[RF69] Setting broadcast address ... "));
|
||||||
state == rf.setBroadcastAddress(0xFF);
|
state = rf.setBroadcastAddress(0xFF);
|
||||||
if (state == ERR_NONE) {
|
if (state == ERR_NONE) {
|
||||||
Serial.println(F("success!"));
|
Serial.println(F("success!"));
|
||||||
} else {
|
} else {
|
||||||
|
@ -65,7 +65,7 @@ void setup() {
|
||||||
// node and broadcast address
|
// node and broadcast address
|
||||||
/*
|
/*
|
||||||
Serial.print(F("[RF69] Disabling address filtering ... "));
|
Serial.print(F("[RF69] Disabling address filtering ... "));
|
||||||
state == rf.disableAddressFiltering();
|
state = rf.disableAddressFiltering();
|
||||||
if(state == ERR_NONE) {
|
if(state == ERR_NONE) {
|
||||||
Serial.println(F("success!"));
|
Serial.println(F("success!"));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue