Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. MQTT mit Visuino Einstellungen

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    MQTT mit Visuino Einstellungen

    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      edi1975 last edited by

      Hallo zusammen ich bitte euch um Hilfe.

      Ich komme nicht weiter hab schon alles ausprobiert, selber bin ich kein Programmierer und wen ich Visuino gefunden habe war ich so glücklich das grafisch alles geht.

      Um zu alles Ekleren habe ich Video auf YouTube geladen. Über Visuino gibst keine Infos hier und ich finde das Programm ist geil für Anfänge wie ich.

      Für eure Hilfe bin ich Dankbar.

      ! https://youtu.be/H-kUqlDTJWE

      //----------------------------------------------
      //
      //        Sketch Generated by Visuino
      //              www.visuino.com
      //          Version 7.8.2.261
      //
      //------------------ Source --------------------
      //
      // Uno_MQTT.visuino
      //
      //----------------------------------------------
      
      #define VISUINO_ARDUINO_UNO
      
      #include <openwire.h>
      #include <mitov.h>
      #include <mitov_formattedserial.h>
      #include <mitov_ethernetshield.h>
      #include <spi.h>
      #include <ethernet.h>
      #include <dns.h>
      #include <mitov_mqtt.h>
      #include <mitov_button.h>
      
      // Arduino Board Declarations
      
      namespace BoardDeclarations
      {
      Mitov::ArduinoDigitalOutputChannel<8> ArduinoDigitalChannel_8( false, false );
      } // BoardDeclarations
      
      // Declarations
      
      namespace Declarations
      {
      Mitov::EthernetShield<1> TArduinoEthernetShield1( Mitov::TMACAddress( 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED ), false, IPAddress( 192, 168, 178, 28 ) );
      Mitov::TCPClientSocket<mitov::ethernetshield<1>, Declarations::TArduinoEthernetShield1, EthernetClient> TArduinoEthernetTCPClientSocket1( 0, IPAddress( 192, 168, 178, 25 ) );
      Mitov::EthernetSocketBinaryInput<mitov::tcpclientsocket<mitov::ethernetshield<1>, Declarations::TArduinoEthernetShield1, EthernetClient>, Declarations::TArduinoEthernetTCPClientSocket1> TArduinoEthernetTCPClientSocket1_SerialInputByte_1;
      Mitov::MitovMQTTClient MQTTClient1 = Mitov::MitovMQTTClient( false, "40D3FBD2C32DEC5692BB717C23690287" );
      Mitov::ArduinoMQTTClientTextReadTopic <declarations::mqttclient1>TArduinoMQTTTextTopic1( Declarations::MQTTClient1 );
      Mitov::Button Button1;
      } // Declarations
      
      // Type Converters
      
      namespace TypeConverters
      {
      Mitov::Convert_DigitalToText Converter0;
      } // TypeConverters
      
      // Pin Call Declarations
      
      namespace PinCalls
      {
      void PinCallerReceive1( void *_Data );
      void PinCallerReceive2( void *_Data );
      void PinCallerReceive3( void *_Data );
      void PinCallerReceive4( void *_Data );
      void PinCallerReceive5( void *_Data );
      void PinCallerReceive6( void *_Data );
      void PinCallerReceive7( void *_Data );
      } // PinCalls
      
      // Pin Call Implementations
      
      namespace PinCalls
      {
      void PinCallerReceive1( void *_Data )
      {
        Declarations::Button1.InputPin_o_Receive( _Data );
      }
      
      void PinCallerReceive2( void *_Data )
      {
        Declarations::MQTTClient1.ConnectedInputPin_o_Receive( _Data );
      }
      
      void PinCallerReceive3( void *_Data )
      {
        Declarations::MQTTClient1.InputPin_o_Receive( _Data );
      }
      
      void PinCallerReceive4( void *_Data )
      {
        Declarations::TArduinoEthernetTCPClientSocket1.DisconnectInputPin_o_Receive( _Data );
      }
      
      void PinCallerReceive5( void *_Data )
      {
        Declarations::TArduinoEthernetTCPClientSocket1_SerialInputByte_1.InputPin_o_Receive( _Data );
      }
      
      void PinCallerReceive7( void *_Data )
      {
        TypeConverters::Converter0.Convert( _Data, PinCallerReceive6 );
      }
      
      void PinCallerReceive6( void *_Data )
      {
        Declarations::TArduinoMQTTTextTopic1.InputPin_o_Receive( _Data );
      }
      } // PinCalls
      
      namespace ComponentsHardware
      {
      void SystemUpdateHardware()
      {
      }
      } // ComponentsHardware
      
      //The setup function is called once at startup of the sketch
      void setup()
      {
        BoardDeclarations::ArduinoDigitalChannel_8.OutputPin().SetCallback( PinCalls::PinCallerReceive1 );
        Declarations::TArduinoEthernetTCPClientSocket1.ConnectedOutputPin().SetCallback( PinCalls::PinCallerReceive2 );
        Declarations::TArduinoEthernetTCPClientSocket1.Port = 1883;
        Declarations::TArduinoEthernetTCPClientSocket1.OutputPin().SetCallback( PinCalls::PinCallerReceive3 );
        Declarations::MQTTClient1.DisconnectOutputPin().SetCallback( PinCalls::PinCallerReceive4 );
        Declarations::MQTTClient1.OutputPin().SetCallback( PinCalls::PinCallerReceive5 );
        Declarations::TArduinoMQTTTextTopic1.Topic = "Test1";
        Declarations::Button1.OutputPin().SetCallback( PinCalls::PinCallerReceive7 );
      
        BoardDeclarations::ArduinoDigitalChannel_8.SystemInit();
        Declarations::TArduinoEthernetShield1.SystemInit();
        Declarations::TArduinoEthernetTCPClientSocket1.SystemInit();
      
        BoardDeclarations::ArduinoDigitalChannel_8.SystemStart();
        Declarations::Button1.SystemStart();
      }
      
      // The loop function is called in an endless loop
      void loop()
      {
        unsigned long A_Current_Microseconds = micros();
      
        BoardDeclarations::ArduinoDigitalChannel_8.SystemLoopBegin( A_Current_Microseconds );
        Declarations::TArduinoEthernetTCPClientSocket1.SystemLoopBegin( A_Current_Microseconds );
        Declarations::MQTTClient1.SystemLoopBegin( A_Current_Microseconds );
        Declarations::Button1.SystemLoopBegin( A_Current_Microseconds );
      }</declarations::mqttclient1></mitov::tcpclientsocket<mitov::ethernetshield<1></mitov::ethernetshield<1></mitov_button.h></mitov_mqtt.h></dns.h></ethernet.h></spi.h></mitov_ethernetshield.h></mitov_formattedserial.h></mitov.h></openwire.h>
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate
      FAQ Cloud / IOT
      HowTo: Node.js-Update
      HowTo: Backup/Restore
      Downloads
      BLOG

      732
      Online

      31.7k
      Users

      79.7k
      Topics

      1.3m
      Posts

      1
      1
      370
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo