Thanks - so connect would work as-is if it just did a CEREG when not going for GSM/LTE?
Good point about the cell changing - it'd def make sense as a method that could be called then. It'd be great if you were able to suggest what might be required.
Odd about power - I've only had any luck running the boards directly off a LiPo, but when that's done it has been file.
SSL - realistically that'd require some changes in Espruino itself I think as at the moment it expects that it'll implement SSL itself if it's going to do it (but I'm not sure there's enough RAM on the nRF52).
MQTT - should be available as a module for Espruino, so probably not a big deal.
Very interesting about the filesystem though - that's huge! It could always be another module that you can load in if you need it. It may even be something that works on other Quectel modules.
Bluetooth
Not sure what to suggest there - if it's not advertising it's because it thinks it is connected. It sounds like somewhere along the line Mac OS is probably still maintaining a connection but Web Bluetooth thinks it's lost - and I'm afraid all that code in the middle is very much out of my control.
I know it's not a great solution but I'd say when you're developing and you want an active connection, maybe just don't let your Mac go to sleep?
AT+QICLOSE
Could you post a new issue here with the results of running something when gprs.at.debug() has been run right after connect?
Or is it the case that Espruino gets a QIURC 'closed' message, but it actually still has to issue a QICLOSE` before the socket can be used again?
I should add that I have an agreement with RAK Wireless where I maintain the build of Espruino for the RAK8211/8212 - but I'm paid quite a small amount per month for that and it doesn't cover supporting RAK's customers. I'll try to help out and take in any changes you might suggest but I can't afford to offer the same level of support that I would to folks that were buying my own boards.
Even so the QICLOSE thing is something I'd really like to get sorted properly as that sounds like something that definitely should have been working from the beginning.
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.
Thanks - so
connect
would work as-is if it just did aCEREG
when not going for GSM/LTE?Good point about the cell changing - it'd def make sense as a method that could be called then. It'd be great if you were able to suggest what might be required.
Odd about power - I've only had any luck running the boards directly off a LiPo, but when that's done it has been file.
Not sure what to suggest there - if it's not advertising it's because it thinks it is connected. It sounds like somewhere along the line Mac OS is probably still maintaining a connection but Web Bluetooth thinks it's lost - and I'm afraid all that code in the middle is very much out of my control.
I know it's not a great solution but I'd say when you're developing and you want an active connection, maybe just don't let your Mac go to sleep?
Could you post a new issue here with the results of running something when
gprs.at.debug()
has been run right after connect?AT+QICLOSE=sktnum
should be called by Espruino, which I think is what's required: https://github.com/espruino/EspruinoDocs/blob/master/devices/QuectelBG96.js#L37Or is it the case that Espruino gets a
QIURC 'closed'
message, but it actually still has to issue a QICLOSE` before the socket can be used again?I should add that I have an agreement with RAK Wireless where I maintain the build of Espruino for the RAK8211/8212 - but I'm paid quite a small amount per month for that and it doesn't cover supporting RAK's customers. I'll try to help out and take in any changes you might suggest but I can't afford to offer the same level of support that I would to folks that were buying my own boards.
Even so the
QICLOSE
thing is something I'd really like to get sorted properly as that sounds like something that definitely should have been working from the beginning.