Forum >Replies by perry.costa01
userhead perry.costa01
Replies (2)
  • You Reply: With the new library the errors are now:
    Arduino: 1.8.9 (Windows 7), Board: "Arduino/Genuino Uno"

    In file included from d:\data\My Documents\Arduino\libraries\DFRobot_SIM-master/DFRobot_SIM.h:7:0,

    from D:\data\My Documents\Arduino\sketch_may31a\sketch_may31a.ino:2:

    d:\data\My Documents\Arduino\libraries\DFRobot_SIM-master/DFRobot_SIMclient.h:6:6: error: multiple definition of 'enum Protocol'

    enum Protocol {

    ^

    In file included from D:\data\My Documents\Arduino\sketch_may31a\sketch_may31a.ino:1:0:

    d:\data\My Documents\Arduino\libraries\DFRobot_SIM7000-master/DFRobot_SIM7000.h:9:6: note: previous definition here

    enum Protocol {

    ^

    exit status 1
    Error compiling for board Arduino/Genuino Uno.

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
  • You Reply: Hi,
    I haven't altered library. I altered the code to fit it to the library. Which was only 3 changes:
    Line 36, from setNet --> to setNetMode
    Line 56, from connect --> to openNetwork
    Line 68, from close --> to closeNetwork

    That's all :/ if you run the code they aren't found in the file: DFRobot_SIM7000.h
    But the altered forms are.