You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::cout << std::endl; //PrintDebug == 1 does not have an endline.
177
177
printPayload(msg.getPayloadStr(),"radio TX");
178
178
}
179
-
constuint16_t other_node = otherNodeAddr;
180
-
RF24NetworkHeader header(/*to node*/ other_node);
181
-
bool ok = network.write(header,msg.getPayload(),msg.getLength());
182
-
179
+
180
+
uint8_t *tmp = msg.getPayload();
181
+
/*printf("********WRITING************\n");
182
+
for(int i=0; i<8; i++){
183
+
//std::cout << std::hex << buffer[i] <<std::endl;
184
+
//printf("%#x\n",(uint8_t)buffer[i]);
185
+
//uint32_t tmp2 = 0;
186
+
//tmp2 |= (uint32_t)tmp;
187
+
//printf("%01x\n",tmp2);
188
+
printf("0%#x\n",tmp[i]);
189
+
//tmp++;
190
+
}*/
191
+
192
+
tmp = msg.getPayload();
193
+
194
+
uint32_t RF24_STR = 0x34324652; //Identifies the mac as an RF24 mac
195
+
uint32_t ARP_BC = 0xFFFFFFFF; //Broadcast address
196
+
structmacStruct{
197
+
uint16_t rf24_Addr;
198
+
uint32_t rf24_Verification;
199
+
};
200
+
201
+
//struct serialip_state *s = &(uip_conn->appstate);//Creates a pointer to the application state of the current connection, which can be used to terminate it?
std::cerr << "Tun: Less bytes written to tun/tap device then requested." << std::endl;
272
326
} else {
@@ -382,13 +436,13 @@ int main(int argc, char **argv) {
382
436
std::cout << "Choose an address: Enter 0 for master, 1 for child, 2 for Master with 1 Arduino routing node (02), 3 for Child with Arduino routing node (CTRL+C to exit) \n>";
0 commit comments