Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Mqtt node

An asset by freehuntx
The page banner background of a mountain and forest
Mqtt node hero image

Quick Information

0 ratings
Mqtt node icon image
freehuntx
Mqtt node

This is a simple implementation of mqtt 3.It adds a node that can be used entirely without code and just visually!Just ws/wss brokers are supported for cross compatibility reasons (browser support).There are no plans/needs to add tcp/udp.

Supported Engine Version
4.0
Version String
0.0.1
License Version
MIT
Support Level
community
Modified Date
11 days ago
Git URL
Issue URL

mqtt-node

Logo

Overview

A simple mqtt (v3) implementation in gdscript.

For cross-platform compatibility its just working with websocket. There are no plans to support tcp/udp!

Installation

  1. Copy addons/mqtt-node to your godot project
  2. Done! You can use the MqttNode component now!

Usage

Example (Using just code)

extends Node2D

@onready var mqtt := MqttNode.new()

func _ready() -> void:
    mqtt.broker = 'wss://broker.hivemq.com:8884/mqtt'
    mqtt.auto_connect = true

    mqtt.connecting.connect(func():
        print("Connecting...")
    )
    mqtt.connecting_failed.connect(func():
        print("Connecting failed!")
    )
    mqtt.connected.connect(func():
        print("Connected!")
        mqtt.subscribe("test/#")
    )
    mqtt.disconnected.connect(func():
        print("Disonnected!")
    )
    mqtt.message.connect(func(topic, msg):
        print("Message (%s): %s" % [topic, msg])
    )
    add_child(mqtt)

This is a simple implementation of mqtt 3.
It adds a node that can be used entirely without code and just visually!

Just ws/wss brokers are supported for cross compatibility reasons (browser support).
There are no plans/needs to add tcp/udp.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Mqtt node icon image
freehuntx
Mqtt node

This is a simple implementation of mqtt 3.It adds a node that can be used entirely without code and just visually!Just ws/wss brokers are supported for cross compatibility reasons (browser support).There are no plans/needs to add tcp/udp.

Supported Engine Version
4.0
Version String
0.0.1
License Version
MIT
Support Level
community
Modified Date
11 days ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers