The use of the ESP8266 in the world of IoT

User avatar
By sheminasalam
#94867 I have been espnow between two of my ESP8266 boards in channel 1 without any issues. In this setup one device id the hub which is connected to both wifi and espnow, the other is the slave only working with ESP now. I tried changing the channel for espnow communication with the command

Code: Select allesp_now_add_peer(board, ESP_NOW_ROLE_SLAVE, 9, NULL, 0)


but then there is no communication between the device. On further diagnostics, I found that the channel is not changed even when I specify channel 9 in the above command. Why is this so? Is there anyway that I can change the channel for espnow communication.