S Stern0m1 Member Licensed User Mar 8, 2017 #1 I want an external wifi device, an esp8266 to detect when an Android phone is near by. Im thinking to use wifi direct. Is there a way i could have wifi direct stay on? Is there a better way? Thanks
I want an external wifi device, an esp8266 to detect when an Android phone is near by. Im thinking to use wifi direct. Is there a way i could have wifi direct stay on? Is there a better way? Thanks
Erel B4X founder Staff member Licensed User Longtime User Mar 9, 2017 #2 Wifi direct will not work with ESP8266. You can create an app that runs in the background and broadcasts UDP messages every few seconds. Upvote 0
Wifi direct will not work with ESP8266. You can create an app that runs in the background and broadcasts UDP messages every few seconds.
S Stern0m1 Member Licensed User Mar 9, 2017 #3 The app would have to be constantly checking if the esp8266 is nearby? Would this consume a lot of resources, drain the battery? Is there anyway to communicate without first establishing a network? Thanks Upvote 0
The app would have to be constantly checking if the esp8266 is nearby? Would this consume a lot of resources, drain the battery? Is there anyway to communicate without first establishing a network? Thanks
Erel B4X founder Staff member Licensed User Longtime User Mar 9, 2017 #4 Stern0m1 said: The app would have to be constantly checking if the esp8266 is nearby? Click to expand... You will either need to broadcast a message every few seconds or listen for one. Stern0m1 said: Would this consume a lot of resources, drain the battery? Click to expand... It will consume resources. Hard to say whether it will be significant or not. Stern0m1 said: Is there anyway to communicate without first establishing a network? Click to expand... It will work automatically assuming that the device will connect to the same local network that the ESP8266 is connected to. You can improve this solution by checking for the location with FusedLocationProvider. Upvote 0
Stern0m1 said: The app would have to be constantly checking if the esp8266 is nearby? Click to expand... You will either need to broadcast a message every few seconds or listen for one. Stern0m1 said: Would this consume a lot of resources, drain the battery? Click to expand... It will consume resources. Hard to say whether it will be significant or not. Stern0m1 said: Is there anyway to communicate without first establishing a network? Click to expand... It will work automatically assuming that the device will connect to the same local network that the ESP8266 is connected to. You can improve this solution by checking for the location with FusedLocationProvider.
S Stern0m1 Member Licensed User Mar 10, 2017 #5 Any better ideas to implement what im trying to do? Doesn't have to be with esp8266. Esp8266 is ideal because its so cheap. The concept is for some module to "sense" when a phone is nearby? Thanks Upvote 0
Any better ideas to implement what im trying to do? Doesn't have to be with esp8266. Esp8266 is ideal because its so cheap. The concept is for some module to "sense" when a phone is nearby? Thanks
tigrot Well-Known Member Licensed User Longtime User Mar 10, 2017 #6 It's feasible using BLE. You have RSSI which gives you the rough distance of the transmitter. You can use wi-fi but doesn't give Good results. Upvote 0
It's feasible using BLE. You have RSSI which gives you the rough distance of the transmitter. You can use wi-fi but doesn't give Good results.
Erel B4X founder Staff member Licensed User Longtime User Mar 12, 2017 #7 You will still need to have a process running in the background searching for the BLE beacon. Upvote 0