Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. justfra
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    justfra

    @justfra

    0
    Reputation
    1
    Posts
    46
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    justfra Follow

    Best posts made by justfra

    This user hasn't posted anything yet.

    Latest posts made by justfra

    • RE: NodeManager: plugin for a rapid development of battery-powered sensors

      Hello @user2684 et al,

      I'm trying to use this library on an ESP32 board. I'm trying this sketch out (https://raw.githubusercontent.com/mysensors/NodeManager/master/examples/AnalogLightAndTemperatureSensor/AnalogLightAndTemperatureSensor.ino)

      My problem is that if I just try to use the 1.8 version of NodeManager it will use as a dependency a version of MySensors which do not work with ESP32 and I get a known error regarding re-definition of app_main. Because of that I need to use the development version of MySensors but it seems not compatible with NodeManager 1.8 as I get the following error:

      In file included from .pio/libdeps/nodemcu-32s/MySensors/MySensors.h:43:0,
                       from .pio/libdeps/nodemcu-32s/NodeManager/MySensors_NodeManager.h:43,
                       from src\main.cpp:60:
      .pio/libdeps/nodemcu-32s/MySensors/MyConfig.h:288:2: warning: #warning MY_RADIO_NRF24 is deprecated, use MY_RADIO_RF24 instead. [-Wcpp]
       #warning MY_RADIO_NRF24 is deprecated, use MY_RADIO_RF24 instead.
        ^
      In file included from .pio/libdeps/nodemcu-32s/NodeManager/MySensors_NodeManager.h:87:0,
                       from src\main.cpp:60:
      .pio/libdeps/nodemcu-32s/NodeManager/nodemanager/Sensor.cpp: In member function 'void Sensor::presentation()':
      .pio/libdeps/nodemcu-32s/NodeManager/nodemanager/Sensor.cpp:135:54: error: invalid conversion from 'uint8_t {aka unsigned char}' to 'mysensors_sensor_t' [-fpermissive]
         present(child->getChildId(), child->getPresentation(), child->getDescription(), nodeManager.getAck());
                                                            ^
      In file included from .pio/libdeps/nodemcu-32s/MySensors/MySensors.h:433:0,
                       from .pio/libdeps/nodemcu-32s/NodeManager/MySensors_NodeManager.h:43,
                       from src\main.cpp:60:
      .pio/libdeps/nodemcu-32s/MySensors/core/MySensorsCore.cpp:375:6: note:   initializing argument 2 of 'bool present(uint8_t, mysensors_sensor_t, const char*, bool)'   
       bool present(const uint8_t childSensorId, const mysensors_sensor_t sensorType,
            ^
      *** [.pio\build\nodemcu-32s\src\main.cpp.o] Error 1
      

      I have also tried using the development version of NodeManager with the development version of MySensors although I get the same result.
      I'm stuck and I would really appreciate any input.

      Thanks in advance!

      posted in NodeManager
      justfra
      justfra