I am really new to this. Still not quite understand the address setup for multiple transmitters. Actually I am setting up to have 3 transmitters sending individual data to one receiver. I have similar problem.
It seems readings from three transmitters are same. When I tried to change reading from , all readings from all sensors changed.
TX1:
const uint64_t pipes[3] = {0xB3B4B5B6F1,0xB3B4B5B6CD,0xB3B4B5B6A3};
radio.openWritingPipe(pipes[1]);
read and send data p1, t1, s1
radio.write(p1, sizeof(p1));
radio.write(t1, sizeof(t1));
radio.write(s1, sizeof(s1));
TX2:
const uint64_t pipes[3] = {0xB3B4B5B6F1,0xB3B4B5B6CD,0xB3B4B5B6A3};
read and send data p2, t2, s2
radio.openWritingPipe(pipes[2]);
read and send data p2, t2, s2
radio.write(p2, sizeof(p2));
radio.write(t2, sizeof(t2));
radio.write(s2, sizeof(s2));
Receiver:
const uint64_t pipes[3] = {0xB3B4B5B6F1,0xB3B4B5B6CD,0xB3B4B5B6A3};
radio.openReadingPipe(1,pipes[1]);
radio.openReadingPipe(2,pipes[2]);
Do I need to upload entire code?
Thank you!
I am really new to this. Still not quite understand the address setup for multiple transmitters. Actually I am setting up to have 3 transmitters sending individual data to one receiver. I have similar problem.
It seems readings from three transmitters are same. When I tried to change reading from , all readings from all sensors changed.
TX1:
const uint64_t pipes[3] = {0xB3B4B5B6F1,0xB3B4B5B6CD,0xB3B4B5B6A3};
radio.openWritingPipe(pipes[1]);
read and send data p1, t1, s1
radio.write(p1, sizeof(p1));
radio.write(t1, sizeof(t1));
radio.write(s1, sizeof(s1));
TX2:
const uint64_t pipes[3] = {0xB3B4B5B6F1,0xB3B4B5B6CD,0xB3B4B5B6A3};
read and send data p2, t2, s2
radio.openWritingPipe(pipes[2]);
read and send data p2, t2, s2
radio.write(p2, sizeof(p2));
radio.write(t2, sizeof(t2));
radio.write(s2, sizeof(s2));
Receiver:
const uint64_t pipes[3] = {0xB3B4B5B6F1,0xB3B4B5B6CD,0xB3B4B5B6A3};
radio.openReadingPipe(1,pipes[1]);
radio.openReadingPipe(2,pipes[2]);
Do I need to upload entire code?
Thank you!