m-poh / react-qr-mqtt

Proof of concept: a React app with in-browser QR code generation + interaction with the webpage through a smartphone (using MQTT over websockets).

Home Page:https://linomp.github.io/react-qr-mqtt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

svelte-qr-mqtt

A simple Svelte app that creates a QR code to be scanned with a smartphone. This opens another page on the phone, with a couple of buttons that trigger actions on the original page (via MQTT).

This is a building block of my personal website.

Try it out: Live demo

svelte-qr-mqtt-figure

Setup

If you don't already have it, install yarn (globally):

npm install -g yarn

Then:

yarn install
yarn dev

See the .env files for broker configuration.

Currently, the broker listed there is a public Mosquitto MQTT broker provided by Eclipse for testing (supports MQTT over secure web sockets).

About

Proof of concept: a React app with in-browser QR code generation + interaction with the webpage through a smartphone (using MQTT over websockets).

https://linomp.github.io/react-qr-mqtt/


Languages

Language:Svelte 40.1%Language:HTML 26.5%Language:TypeScript 17.1%Language:CSS 11.3%Language:JavaScript 4.9%