https://github.com/bwsix/nextjs-esp8266-mqtt-wireless-communication
Next.js, esp8266, mqtt wireless communication example
https://github.com/bwsix/nextjs-esp8266-mqtt-wireless-communication
Last synced: over 1 year ago
JSON representation
Next.js, esp8266, mqtt wireless communication example
- Host: GitHub
- URL: https://github.com/bwsix/nextjs-esp8266-mqtt-wireless-communication
- Owner: BWsix
- Created: 2022-08-21T02:42:56.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-21T03:00:53.000Z (almost 4 years ago)
- Last Synced: 2025-03-27T17:51:46.968Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 49.8 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Next.js, esp8266, mqtt wireless communication example
## Installation
### pre-requirements
1. install node.js ()
1. install git ()
1. install essential packages by running `npm i -g yarn localtunnel`
1. clone this repo by running `git clone https://github.com/BWsix/nextjs-esp8266-mqtt-wireless-communication.git`
### esp8266
1. install arduino ide ()
1. change wifi ssid, password and mqtt topic name in nodemcu/main.ino
1. change topic name in pages/index.tsx
1. upload nodemcu/main.ino to your esp8266 board
### Server
1. cd into `nextjs-esp8266-mqtt-wireless-communication`
1. install node packages by running `yarn`
1. build next.js server by running `yarn build`
1. start the server by running `yarn start`
1. go to `localhost:3000`
1. or expose your port 3000 of your local network by running `yarn tunnel`
## Demo