Today has stopped working DHT22 module. What could be the problem? Yesterday everything worked.
1v93 Copyright 2016 G.Williams
Espruino is Open Source. Our work is supported
only by sales of official boards and donations: http://espruino.com/Donate
Flash map 4MB:512/512, manuf 0xe0 chip 0x4016
WARNING: Module "DHT22" not found
Uncaught Error: Field or method "connect" does not already exist, and can't create it on undefined
at line 3 col 27
dht = require("DHT22").connect(D14),
^
=undefined
Found the problem:
If you are using the Web IDE as is, the modules will be loaded from http://www.espruino.com/modules/. This URL can be changed in Web IDE settings and There is no problem.
The url was https://.
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.
Today has stopped working DHT22 module. What could be the problem? Yesterday everything worked.
1v93 Copyright 2016 G.Williams
Espruino is Open Source. Our work is supported
only by sales of official boards and donations:
http://espruino.com/Donate
Flash map 4MB:512/512, manuf 0xe0 chip 0x4016