I have the puck in a public room downstairs. Since I cannot access it from the 3rd floor (out of bluetooth range) I have placed an old iPhone in a locked room close to the puck. This phone has access to wifi and internet. When I open my website with the phone, it connects through WebBLE to the puck (just like the electricity meter example). I have added some Javascript (infinite loop) to the website which calls an URL (XMLHttpRequest) once a day passing data from the Puck-object. This works quite well. However, if the connections is lost (for whatever reason), I'll have to walk downstairs, refresh the website to reconnect to the puck. Still have to see how often this will be the case.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@user135414
I have the puck in a public room downstairs. Since I cannot access it from the 3rd floor (out of bluetooth range) I have placed an old iPhone in a locked room close to the puck. This phone has access to wifi and internet. When I open my website with the phone, it connects through WebBLE to the puck (just like the electricity meter example). I have added some Javascript (infinite loop) to the website which calls an URL (XMLHttpRequest) once a day passing data from the Puck-object. This works quite well. However, if the connections is lost (for whatever reason), I'll have to walk downstairs, refresh the website to reconnect to the puck. Still have to see how often this will be the case.