You are reading a single comment by @Alexander and its replies. Click here to read the full conversation.
  • 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://.

About

Avatar for Alexander @Alexander started