I'am trying to make working your sensor example but my flysky Radio doesn't display anything.
The sensor Trame is well detected withe the trame 0x04, 0x81, 0x7A, 0xFF but after i nether received the PROTOCOL_COMMAND_TYPE: // 0x90, send sensor type
My card ESP32 with serial2, Radio Flysky NB4 and FGr4S rx
Hi,
I'am trying to make working your sensor example but my flysky Radio doesn't display anything.
The sensor Trame is well detected withe the trame 0x04, 0x81, 0x7A, 0xFF but after i nether received the PROTOCOL_COMMAND_TYPE: // 0x90, send sensor type
My card ESP32 with serial2, Radio Flysky NB4 and FGr4S rx
switch (buffer[0] & 0x0f0) { case PROTOCOL_COMMAND_DISCOVER: // 0x80, discover sensor cnt_poll++; // echo discover command: 0x04, 0x81, 0x7A, 0xFF stream->write(0x04); stream->write(PROTOCOL_COMMAND_DISCOVER + adr); chksum = 0xFFFF - (0x04 + PROTOCOL_COMMAND_DISCOVER + adr ); break;
Any idea ?Thanks
PB solve, My ESP32 as problem with Serial 2