Skip to content

Commit

Permalink
Merge pull request #10 from TMRh20/template-attempt
Browse files Browse the repository at this point in the history
Template attempt
  • Loading branch information
TMRh20 authored Jun 22, 2023
2 parents e4ca77f + 79f372b commit ffe8209
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions examples/RF24Ethernet/mqtt_basic/mqtt_basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
#include <MQTT.h>

nrf_to_nrf radio;
RF24Network network(radio);
RF24Mesh mesh(radio, network);
RF24EthernetClass RF24Ethernet(radio, network, mesh);
RF52Network network(radio);
RF52Mesh mesh(radio, network);
RF52EthernetClass RF24Ethernet(radio, network, mesh);

IPAddress ip(10, 1, 3, 244);
IPAddress gateway(10, 1, 3, 33); //Specify the gateway in case different from the server
Expand Down
4 changes: 2 additions & 2 deletions examples/RF24Mesh/RF24Mesh_Example/RF24Mesh_Example.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/**** Configure the nrf24l01 CE and CS pins ****/
nrf_to_nrf radio;

RF24Network network(radio);
RF24Mesh mesh(radio, network);
RF52Network network(radio);
RF52Mesh mesh(radio, network);

/*
* User Configuration: nodeID - A unique identifier for each radio. Allows addressing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ uint8_t myKey[16] = {1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6};
/**** Configure the nrf24l01 CE and CS pins ****/
nrf_to_nrf radio;

RF24Network network(radio);
RF24Mesh mesh(radio, network);
RF52Network network(radio);
RF52Mesh mesh(radio, network);

/*
* User Configuration: nodeID - A unique identifier for each radio. Allows addressing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ uint8_t myKey[16] = {1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6};

/***** Configure the chosen CE,CS pins *****/
nrf_to_nrf radio;
RF24Network network(radio);
RF24Mesh mesh(radio, network);
RF52Network network(radio);
RF52Mesh mesh(radio, network);

uint32_t displayTimer = 0;

Expand Down
2 changes: 1 addition & 1 deletion examples/RF24Network/helloworld_rx/helloworld_rx.ino
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

nrf_to_nrf radio; // nRF24L01(+) radio attached using Getting Started board

RF24Network network(radio); // Network uses that radio
RF52Network network(radio); // Network uses that radio
const uint16_t this_node = 00; // Address of our node in Octal format (04, 031, etc)
const uint16_t other_node = 01; // Address of the other node in Octal format

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ uint8_t myKey[16] = {1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6};

nrf_to_nrf radio; // nRF24L01(+) radio attached using Getting Started board

RF24Network network(radio); // Network uses that radio
RF52Network network(radio); // Network uses that radio
const uint16_t this_node = 00; // Address of our node in Octal format (04, 031, etc)
const uint16_t other_node = 01; // Address of the other node in Octal format

Expand Down
2 changes: 1 addition & 1 deletion examples/RF24Network/helloworld_tx/helloworld_tx.ino
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

nrf_to_nrf radio; // nRF24L01(+) radio attached using Getting Started board

RF24Network network(radio); // Network uses that radio
RF52Network network(radio); // Network uses that radio

const uint16_t this_node = 01; // Address of our node in Octal format
const uint16_t other_node = 00; // Address of the other node in Octal format
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ uint8_t myKey[16] = {1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6};

nrf_to_nrf radio; // nRF24L01(+) radio attached using Getting Started board

RF24Network network(radio); // Network uses that radio
RF52Network network(radio); // Network uses that radio

const uint16_t this_node = 01; // Address of our node in Octal format
const uint16_t other_node = 00; // Address of the other node in Octal format
Expand Down

0 comments on commit ffe8209

Please sign in to comment.