btw, if anyone interested,
yesterday and even today GPT suggest to use data and not data.resp.
however after i feed the example codelet (which yesterday i also feed to it),
it now suggest the data.resp way.
my experiences is, if the AI dont work for 1 time, repeat asking the same several times,
then it may work.
and stop using AI if the hurdles out weight the benefits.
ps: i independently feed the correct and then wrong code to it. at first it still wrong and suggest data,
but after i feed the codelet, it reflects on itself and say should use data.resp as Gordon suggsted.
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.
thx,
---------END, below is not reply but a share, thx
btw, if anyone interested,
yesterday and even today GPT suggest to use data and not data.resp.
however after i feed the example codelet (which yesterday i also feed to it),
it now suggest the data.resp way.
my experiences is, if the AI dont work for 1 time, repeat asking the same several times,
then it may work.
and stop using AI if the hurdles out weight the benefits.
Bangle.http("https://pur3.co.uk/hello.txt").then(data=>{
console.log("Got ",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,
but after i feed the codelet, it reflects on itself and say should use data.resp as Gordon suggsted.