General

Communication between central and peripheral

userHead rupeshit47 2015-08-11 02:11:48 2074 Views3 Replies
Hello everyone,

I have two bluno mega boards. I have set one as a central connected to pc and another one as peripheral for the robot movement.
I'm able to send commands from central to peripheral board, but how can I read values of perpheral in the central board which is connected to the pc.

Thanks
2015-08-17 18:34:40 Sorry for my poor English.

I mean you could ignore their role_the central / peripheral .

Just use Serial.read() to receive message, use Serial.print()/write() to send message.
userHeadPic Leff
2015-08-16 05:58:15 Not exactly! can you explain in detail?

Thanks!
userHeadPic rupeshit47
2015-08-11 18:40:09 Just treat the central maga as peripheral, the peripheral as central. Does it make sense to you? userHeadPic Leff