Now I use a SIM7600CE for 4G connection. The modules didn't adapt for this kind of sim card.
So I have to write my own module for it.
Now I can get response datas in this Method:
recv: function (sckt, maxLen) {
if (sockData[sckt]) {
var r;
console.log("recv", sockData[sckt].length);
if (sockData[sckt].length > maxLen) {
r = sockData[sckt].substr(0, maxLen);
sockData[sckt] = sockData[sckt].substr(maxLen);
console.log("recv", sockData[sckt]);
} else {
r = sockData[sckt];
sockData[sckt] = "";
console.log("recv | socks[sckt]", socks[sckt]);
if (socks[sckt] == "DataClose") {
dbg("Got DataClose - forcing close");
socks[sckt] = "closing";
}
}
console.log("[recv data]", r)
return r;
}
if (socks[sckt] == "closing" || !socks[sckt]) return -1; // close it
return "";
},
I think this part is the place where return datas to http.get().
But I can't recieve any datas in this place.
Do you have any introductions about how the datas flow in the network?
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.
Now I use a SIM7600CE for 4G connection. The modules didn't adapt for this kind of sim card.
So I have to write my own module for it.
Now I can get response datas in this Method:
I think this part is the place where return datas to http.get().
But I can't recieve any datas in this place.
Do you have any introductions about how the datas flow in the network?