Can the webIDE use Bangle.http function? it didn't work. #7040
Replies: 1 comment
-
Posted at 2024-10-17 by @thyttan Here's the documentation on http requests: https://www.espruino.com/Gadgetbridge#http-requests Posted at 2024-10-17 by @thyttan
Posted at 2024-10-18 by @gfwilliams What you're missing here is that you're doing This works great though:
An in the other 7 posts you made about this - it really helps to use the remote debugging for this so you can see what's going on: https://www.espruino.com/Gadgetbridge#remote-debugging Posted at 2024-10-18 by ccchan thx, ---------END, below is not reply but a share, thx btw, if anyone interested, however after i feed the example codelet (which yesterday i also feed to it), my experiences is, if the AI dont work for 1 time, repeat asking the same several times, Bangle.http("https://pur3.co.uk/hello.txt").then(data=>{ --------- v the discuss below https://chatgpt.com/share/67125689-9d30-800f-a176-7f05f1b9e621 ps: i independently feed the correct and then wrong code to it. at first it still wrong and suggest data, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2024-10-17 by ccchan
co
Uncaught Error: Function "http" not found!
at line 1 col 8
Bangle.http("https://worldtimeapi.org/api/ip").then(data => ...
^
thankss
Beta Was this translation helpful? Give feedback.
All reactions