# MineQTT
## Installation
```lua
local net = require("internet"); local io = require("io"); local f = io.open("/lib/mqtt.lua", "w"); for line in net.request("https://git.luj0ga.de/luca/mineqtt/raw/branch/main/mqtt.lua") do f:write(line) end; f:flush():close()
```
## Usage
local mqtt = require("mqtt")
local client, err = mqtt.open("mqtt.example.org", 1883)
if err ~= nil then
error(err)
end
local err = client:connect()
local err = client:handle()
print(client.is_connected)
local err = client:disconnect()