I'm just sending the single line require snippet as in post #1
nfo":"","Sound_Success":"","Sound_Warning":"","Speak_Error":false,"Speak_Info":false,"Speak_Success":false,"Speak_Warning":false,"UI_MODE":"Normal","WEBCAM_CONSTRAINTS":0,"projectEntry":"3283B07BECAAF13E2A9156A1F2A10BC4"}
loadModule(AT24)
ERROR: Found module, but search took too long.
ERROR: getURL("https://www.espruino.com/modules/AT24.min.js") error : Error: certificate has expired
ERROR: getURL("https://www.espruino.com/modules/AT24.js") error : Error: certificate has expired
WARNING: [notify_warn] Module AT24 not found
Found a prompt... great!
>>> Sending...
---> "\u0010reset();\n\u0010\n\u0010\u001b[2dvar ee = require(\"AT24\").connect(i2c, pagesize, capacity, i2caddress);\n\n"
Splitting for reset(), delay 250
>>> Sent
SET chrome.storage.sync = {"AUTO_SAVE_CODE":true,"BAUD_RATE":"115200","BLOCKLY_EXTENSIONS":"|bluetooth|robot|","BLOCKLY_LANGUAGE":"en","BLOCKLY_TO_JS":false,"BOARD_JSON_URL":"http://www.espruino
'I believe a quick fix is just to go to Settings -> Communications -> Module URL'
Did that and success!
The first line below of the module is now fetched:
fo":"","Sound_Success":"","Sound_Warning":"","Speak_Error":false,"Speak_Info":false,"Speak_Success":false,"Speak_Warning":false,"UI_MODE":"Normal","WEBCAM_CONSTRAINTS":0,"projectEntry":"3283B07BECAAF13E2A9156A1F2A10BC4"}
Config.MODULE_URL => http://www.espruino.com/modules
- AT24 requires []
Found a prompt... great!
>>> Sending...
---> "\u0010reset();\n\u0010Modules.addCached(\"AT24\",\" /* Copyright (C) 2014-2015 Spence Konde. See the file LICENSE for copying permission. */\\n /*\\nThis module interfaces with I2C EEPROMs, like the AT24C256. \\n\\nThis only supports EEPROMs with 16-
'Since you're native, the lack of HTTPS won't matter'
Learned something. I was under the impression that requests would be denied to the requester should the certificate not be active and the 's' URL request is not made. As (assumption) the native app .js module request doesn't appear as a browser request, we get away with it in this instance.
'I guess possibly the NW.js version used for the Native IDE'
Unknown what that file does or how to access it.
It is interesting that the browser request using the online ide is accepted, but the native app isn't. The certificate isn't changing, the URL request goes to the same location, just the request to a secure server is different.
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.
Mon 2021.10.11
Yes and now another as a prefix:
I'm just sending the single line require snippet as in post #1
Did that and success!
The first line below of the module is now fetched:
Learned something. I was under the impression that requests would be denied to the requester should the certificate not be active and the 's' URL request is not made. As (assumption) the native app .js module request doesn't appear as a browser request, we get away with it in this instance.
Unknown what that file does or how to access it.
It is interesting that the browser request using the online ide is accepted, but the native app isn't. The certificate isn't changing, the URL request goes to the same location, just the request to a secure server is different.