summaryrefslogtreecommitdiff
path: root/README.md
blob: 28a5c3e84827ddae6aa5e8c2576022c635d1fc58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# MQhTTp

This is a lightweight lua-scriptable http gateway to mosquitto.

## Building on Linux

MQhTTp depends on libmosquitto and luajit. Once you have these installed, just
```
make
```

## Building anywhere else

I don't care about any other platforms except Linux, so you are on your own.

## Running

Provide host and port of your mosquitto server on the commandline, i.e.
```
./mqhttp localhost 1883
```

After starting, HTTP server listens for incoming connections on localhost, port 8080.
If you are not happy with these defaults, you can change them by adjusting environment variables:
```
export HTTP_PORT=8080
export HTTP_ADDR=0.0.0.0
```

During the start up, MQhTTp sources all the lua files in the current directory (if any).

## Bugs

Yes.