I use blue pill ARM-based board and XBee module. the module should communicate with other Xbees and according to data received, do appropriate task. the code in one MC connected to a module is as follow:
#include <XBee.h>
#include <XBeeGenDef.h>
#include…