Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
Iyad NahasI

Iyad Nahas

@Iyad Nahas
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Platformio and MySensors development branch
    Iyad NahasI Iyad Nahas

    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.

    Development

  • Platformio and MySensors development branch
    Iyad NahasI Iyad Nahas

    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?

    Development

  • Adding WebConfig to ESP8266 Gateway
    Iyad NahasI Iyad Nahas

    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?

    Development
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular