how to make radio ESB mode disable in MySensor API. please help me out.
I want to disconnect the gateway nrf24L01 device from the client nrf24L01 and then client radio should be free for advertising and connecting to mobile device until the button state is low it should not try to connect to gateway nrf24L01. when the button is high the client should be disconnecting from the gateway.
In the client side am using the nRF51822 device and I am giving condition like if button state is LOW the client device should connect gateway device (nrf24L01) and then sending command ON and OFF from gateway to client to turn on the buzzer or LED. The gateway is connected to MQTT broker, if the button is HIGH it should disconnect from the gateway device and it should start advertising and it should connect to the mobile app (NRF connect app), through the mobile app I am sending command 0 and 1 to switch ON and OFF the led of client device.
The gateway side the NRF24L01 is connected to NODE MCU(ESP8266MOD), this device is connected to MQTT broker.
At the client side, I am using both libraries like BLEpepheral.h for advertising and connect to mobile and MySensor.h library for connecting to the gateway and communicate with the gateway device.
The problem I am facing is when the button is HIGH whether the gateway is a disconnect or not, and it is not advertising to connect mobile app( (NRF connect app).
I am checking the functionality of nrf51822 device at the client side, client side I am using both mysensor.h library and BlePeripheral.h library and WaveShare ble 400 nrf51822 device. I have given condition like when a button is LOW the client should connect to the gateway device (gateway side: nrf24L01 and NODE MCU(esp8266) and GatewayEsp8266MQTTclient program).
when a button is high the client should connect to the mobile device but during the LOW (not pressed)condition of a button it is connecting to the gateway i.e to nrf24L01 when I pressed the button means HIGH it is not advertising properly how do I make it disconnect from gateway and make it to normal advertising. please help me.
Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.