At this point, my main interest is a simple broker/server. I looked and found https://www.npmjs.com/package/aedes and going to see how easy it is. NodeRed seems to be a tool for managing the message flows atop the brokers.
import aedes1 from 'aedes';
const aedes = aedes1();
import net from 'net';
const server = net.createServer(aedes.handle);
const port = 1883;
server.listen(port, () => console.log(`Server listening on port ${port}`));
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks.
At this point, my main interest is a simple broker/server. I looked and found https://www.npmjs.com/package/aedes and going to see how easy it is. NodeRed seems to be a tool for managing the message flows atop the brokers.