Avatar for user70656

user70656

Member since Nov 2016 • Last active May 2017
  • 2 conversations
  • 2 comments

Most recent activity

    • 10 comments
    • 1,115 views
    • 2 comments
    • 322 views
  • in ESP8266
    Avatar for user70656

    Has anyone implemented a library for A6 chip?

  • in ESP8266
    Avatar for user70656

    Can someone help me understand how to implement SIM800L on NodeMCU 1.0?!
    I connected:

    • pin rx from sim800 to tx of NodeMCU,
    • pin tx from sim800 to rx of NodeMCU,
    • vcc from sim800 to 3.3v of NodeMCU,
    • gnd from sim800 to gnd of NodeMCU,
    • rst from sim800 to D5 of NodeMCU

    Then i got this code:

    var wifi = require('Wifi');
    var esp = require('ESP8266');
    var sim = require('SIM900');
    
    wifi.connect("...........", {password:'...............'}, function(err) {
          if (err) throw err;
          console.log("Connected to wifi");
          console.log(wifi.getIP().ip);
    });
    
    var gprs = sim.connect(Serial1, D5, function(err) {
      if (err) throw err;
      gprs.connect('mobile.vodafone.it', '', '', function(err) {
        if (err) throw err;
        gprs.getIP(function(err, ip) {
          if (err) throw err;
          console.log('IP:' + ip);
          require("http").get("http://www.pur3.co.­uk/hello.txt", function(res) {
            console.log("Response: ",res);
            res.on('data', function(d) {
              console.log("--->"+d);
            });
          });
        });
      });
    });
    

    I got console stopping to work.
    I even thought that as NodeMCU is connected to usb and maybe tx and rx of NodeMCU somehow conflict with usb then i changed on code "serial1" to serial2 or serial3 but nothing.
    Then as i thought about the conflict i connected and saved wifi so that i can connect to NodeMCU through wifi for IDE and then send serial connect on next reboot but nothing.
    Well ... can someone tell me how it works please?
    Thanks

Actions