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
  1. Home
  2. General Discussion
  3. How to setup mqtt gateway not from predified constants?

How to setup mqtt gateway not from predified constants?

Scheduled Pinned Locked Moved General Discussion
5 Posts 3 Posters 797 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.
  • S Offline
    S Offline
    Stas Dovgodko
    wrote on last edited by
    #1

    I'm using esp sketch with web-configured mqtt options. How I can feed it to MS gateway?

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      That would quite a challenge.... What did you had in mind?

      S 1 Reply Last reply
      0
      • scalzS Offline
        scalzS Offline
        scalz
        Hardware Contributor
        wrote on last edited by scalz
        #3

        @Stas-Dovgodko
        would that do the job ?

        #MY_MQTT_DEFINE_I_WANT_VARIABLE myMqttVariable
        

        then use the myMqttVariable in your sketch

        S 1 Reply Last reply
        0
        • gohanG gohan

          That would quite a challenge.... What did you had in mind?

          S Offline
          S Offline
          Stas Dovgodko
          wrote on last edited by Stas Dovgodko
          #4

          @gohan Yeah, just rewrote lib a lot of ) For now subscribe working but not publishing. This would be configurable (just like sonoff for example) gateway with wifi-portal (ap) and configurable wifi/mqtt options from web interface

          1 Reply Last reply
          0
          • scalzS scalz

            @Stas-Dovgodko
            would that do the job ?

            #MY_MQTT_DEFINE_I_WANT_VARIABLE myMqttVariable
            

            then use the myMqttVariable in your sketch

            S Offline
            S Offline
            Stas Dovgodko
            wrote on last edited by
            #5

            @scalz No. But this in mysensor lib does :) :

            extern PubSubClient MQTTClient;
            extern WiFiClient wclient;
            
            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            12

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            Posts


            Copyright 2025 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
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular