promiscuous mode pin change
Posted: Mon Jul 10, 2017 8:32 pm
I am trying to program the esp8266 so that when it detects a certain beacon in promiscuous mode it should change a pin from high to low.
If I delay 1 millisecond in the loop I am able to change the status of the pin (when it detects a certain beacon) however it resets if I try delaying in between the status change.
If I dont delay in the loop it doesnt reset but it doesnt change the status.
Now, I tried turning off promiscuous mode before I change the status but it doesnt help.
Bottom line, I need the delay in the loop for the status to change but I cant have two delays, in the loop and in the promiscuous callback.
Any suggestions will be greatly appreciated.
Thanks
If I delay 1 millisecond in the loop I am able to change the status of the pin (when it detects a certain beacon) however it resets if I try delaying in between the status change.
If I dont delay in the loop it doesnt reset but it doesnt change the status.
Now, I tried turning off promiscuous mode before I change the status but it doesnt help.
Bottom line, I need the delay in the loop for the status to change but I cant have two delays, in the loop and in the promiscuous callback.
Any suggestions will be greatly appreciated.
Thanks