Navigation

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

    Iyad Nahas

    @Iyad Nahas

    0
    Reputation
    4
    Posts
    321
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Iyad Nahas Follow

    Best posts made by Iyad Nahas

    This user hasn't posted anything yet.

    Latest posts made by Iyad Nahas

    • RE: Platformio and MySensors development branch

      Well, after some trial and error I ended up with just adding the build_flags option with the path to the MySensors library and now building works fine.

      Here's my final platform.ini:

      [env:nodemcu]
      platform = espressif
      framework = arduino
      board = nodemcu
      build_flags = -I../lib/libraries/MySensors
      

      Now to figure out why the auto upload doesn't work. If I upload manually it works fine, but when I add "targets = upload" it keeps trying to connect then times out with an error. No big deal though. I don't mind uploading manually.

      Thank you for your help.

      posted in Development
      Iyad Nahas
      Iyad Nahas
    • RE: Platformio and MySensors development branch

      I am trying to do the same but can't get a compile to work. I created a directory structure similar to the one you describe. In my gateway /src directory I copied the GatewayESP8266MQTTClient.ino file and used the same parameters for platformio.ini as in your example:

      [platformio]
      lib_dir = ../lib
      
      [env:nodemcu]
      platform = espressif
      framework = arduino
      board = nodemcu
      build_flags = -I../lib/MySensors
      lib_ignore = MySensors
      

      However, when I compile I get this error:

      src/tmp_ino_to.cpp:129:22: fatal error: MySensor.h: No such file or directory
      #include <MySensor.h>
      ^
      compilation terminated.
      

      The sketch otherwise compiles perfectly fine under the Arduino IDE.

      I'm sure it's a configuration issue somewhere. Can you expand a bit more on your file structure. Did you need to do any customization of PlatformIO to make it see the MySensors library?

      posted in Development
      Iyad Nahas
      Iyad Nahas
    • Adding WebConfig to ESP8266 Gateway

      I've setup up an ESP8266 Gateway with MQTT (using sketch in Dev branch). Connection to AP & MQTT broker is working fine.

      Rather than having the wireless AP credentials hardcoded I would like the ability to include the WebConfig UI developed by John Lassen here. This would also allow me to experiment with different MQTT brokers without reprogramming the GW.

      I started with the GatewayESP8266MQTTClient sketch and tried to merge the WebConfig sketch but it doesn't seem very doable. Even when separating the EEPROM space the GW seems to continuously try to take over the Wifi configuration and override anything the WebConfig code is doing. Is something doable at all? Any suggestions on how ones goes about doing such a merge? Would it be easier to start with a non-ESP8266 gateway sketch and then merge the WebConfig stuff?

      posted in Development
      Iyad Nahas
      Iyad Nahas