Hi Erel,
My project using a PIR Sensor connected to ESP8266 board but I got some false triggers issue just like some other people in the web :
http://www.esp8266.nu/forum/viewtopic.php?f=5&t=671
The following actions might help to solve the issue:
1. Put the ESP in 802.11G mode instead of 802.11N mode. [ wifi_set_phy_mode(PHY_MODE_11G) ]
2. Lower the ESP wifi output power to 10dBm [ system_phy_set_max_tpw(powervalue max 82)
But the problem is I don't know how to write inline C code, can you please help take a look for the following code and see what's wrong because I got some error during compile? [Error: 'system_phy_max_tpw' was not declared in this scope]
Thank you!
My project using a PIR Sensor connected to ESP8266 board but I got some false triggers issue just like some other people in the web :
http://www.esp8266.nu/forum/viewtopic.php?f=5&t=671
The following actions might help to solve the issue:
1. Put the ESP in 802.11G mode instead of 802.11N mode. [ wifi_set_phy_mode(PHY_MODE_11G) ]
2. Lower the ESP wifi output power to 10dBm [ system_phy_set_max_tpw(powervalue max 82)
But the problem is I don't know how to write inline C code, can you please help take a look for the following code and see what's wrong because I got some error during compile? [Error: 'system_phy_max_tpw' was not declared in this scope]
Thank you!
B4X:
#if C
void SetLowPower(B4R::Object* o) {
system_phy_set_max_tpw(32);
}
void SetMode11G(B4R::Object* o) {
wifi_set_phy_mode(PHY_MODE_11G);
}
#end if