Forum >Replies by andries.arenek
userhead andries.arenek
Replies (4)
  • You Reply: Just another follow up: I would like to know: is https supported?
  • You Reply: Thanks. Is https supported?
  • You Reply: Thank you. I've updated my code, but it is stuck at "BEFORE turnOn()", i.e. busy turning on.
    Code: Select all
    #include <Wire.h>
    #include <DFRobot_SIM7000.h>
    
    #define PIN_TX     7
    #define PIN_RX     8
    SoftwareSerial     mySerial (PIN_RX, PIN_TX); 
    DFRobot_SIM7000    sim7000;
    
    void setup(){    
        Serial.begin(115200);
        mySerial.begin(9600);
    
        while(!Serial);
    
        Serial.println("BEFORE begin()");    
        sim7000.begin(mySerial);  
        Serial.println("AFTER begin()");        
        
        Serial.println("BEFORE turnON()");    
        sim7000.turnON();
        Serial.println("AFTER turnON()");    
    }
      
    void loop(){
       Serial.println("INSIDE LOOP");
    }
    
  • You Reply: Good day,
    I am having similar issues. Suspect it relates to the setNet vs setNetMode methods that are different in your example and library.

    Code on your wiki at https://wiki.dfrobot.com/SIM7000_Arduin ... 05_DFR0572 refers to setNet method as per below:
    Code: Select all
    delay(500);
        Serial.println("Set net mod......");
        if(sim7000.setNet(NB)){                                                                    //Set net mod NB-IOT
            Serial.println("Set NB-IOT mode");
        }else{
            Serial.println("Fail to set mode");
        }
    
    When looking at code on github at https://github.com/DFRobot/DFRobot_SIM7 ... IM7000.cpp, it refers to setNetMode
    Code: Select all
    bool  DFRobot_SIM7000::setNetMode(Net net)
    {
        if(net == NB){
           mode_t=0;
    
    Please can you advise?
    AA