Skip to content
  • 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
  1. Home
  2. Hardware
  3. ESP8266 node mcu sensor sending messages directly to broker
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

ESP8266 node mcu sensor sending messages directly to broker

Scheduled Pinned Locked Moved Hardware
3 Posts 3 Posters 2.3k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Matt PittsM Offline
    Matt PittsM Offline
    Matt Pitts
    wrote on last edited by
    #1

    Hi there,

    I have several ESP8266 node's which i have successfully used, but I'm wondering if it's possible to set them up to communicate directly with my mqtt broker over wifi rather than adding the radio and going via a gateway??

    I have found many sketches with will allow connecting to online services, but I haven't been able to find one which does the above.

    I realise that it would mean combining various elements of sketches together, but I'm sure that someone has already done this so I'm hoping they would be able to share their sketch with me.

    I would like to build stand alone temp and motion sensor which reports directly to the mqtt broker over wifi. Any help would be much appreciated.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      drock1985
      wrote on last edited by drock1985
      #2

      Hi,

      I can't remember the exact project name, but I think there is a group working on adding basic sensors to the ESP2866, and is accessable via web UI. This is similar to what I am talking about; hope it helps. You might be able to set up a script to report the data you want directly to an MQTT server.

      I don't think there is anything MySensors related to what you are asking (currently) as all sensors communicate via Radio (NRF or RFM) directly to the Gateway.

      My Projects
      2 Door Chime Sensor
      Washing Machine Monitor

      1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #3

        @Matt-Pitts said:

        I'm wondering if it's possible to set them up to communicate directly with my mqtt broker over wifi rather than adding the radio and going via a gateway??

        Yes, this MQTT gateway supports this:
        https://github.com/mysensors/Arduino/tree/development/libraries/MySensors/examples/GatewayESP8266MQTTClient

        Just remove the #define MY_RADIO_NRF24

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        14

        Online

        11.7k

        Users

        11.2k

        Topics

        113.0k

        Posts


        Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

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