![Seeed Technology MeshBee Series Cookbook Download Page 16](http://html.mh-extra.com/html/seeed-technology/meshbee-series/meshbee-series_cookbook_1232954016.webp)
©2014 Seeed Technology Inc.
MB_2014_D02
16
Example of Mode operation
Install hardware like that:
1)
Connect Arduino with MeshBee’s Coordinator through UART, switch ‘USB_UART_M8’
to M8 side, switch ‘D11/D12_XBEE_UART’ to UART side.
2)
Connect MeshBee’s Router with UartBeeV5.
This example will send API packet from Coordinator, and control the RSSI
led on the UARTSBee where the Router is plugged in. You should setup the
network first to make the Router connect to the Coordinator, then put the
Coordinator into API mode with the ATAP command. (The Rounter can be under
any mode, it will always accept the remote command.)
Arduino sketch:
#include <Arduino.h>
/* LED Pin */
int led = 13;
/* declaration */
void remoteATIO_Onoff(unsigned char onoff);
void setup() {
pinMode(led, OUTPUT);
/* open the serial port at 115200 bps */
Serial.begin(115200);
}
void loop() {