Giter VIP home page Giter VIP logo

pxt-esp8266iot's Introduction

ESP8266_IoT package

ESP8266_IoT package is developed under the cooperation of ELECFREAKS, CLASSROOM and TINKERCADEMY.

This package uploads data to THINGSPEAK IOT through ESP8266 serial wifi module.

Before start, you have to register an account of thingspeak.

Hardware Setup

  1. Insert the OLED display into the I2C ports on the ELECFREAKS Octopus:bit.

Basic usage

  1. Open Microsoft Makecode/microbit and create a new project
  2. Search and add the ESP8266 package
  3. Use the ESP8266 drawer in the editor to drag out and arrange the blocks
  4. Click Download to move your program to the micro:bit

Example

set wifi

Set pin RX and pin TX for ESP8266 Serial Wifi Module, Baud rate: 115200.

ESP8266_IoT.initwifi(SerialPin.P2, SerialPin.P8)

connet wifi

Connectwifi,please fill in your ssid and your key.

ESP8266_IoT.connectwifi("your ssid", "your key")

connect thingspeak

Connect thingspeak IoT TCP server.

ESP8266_IoT.connectthingspeak()

set data to be send

Set data to be sent. Firstly, you should fill in your write api key.

ESP8266_IoT.tosendtext(
"your write api key",
0,
0,
0,
0,
0,
0,
0,
0
)

senddata

Send data to thingspeak.

ESP8266_IoT.senddata()

License

MIT

Supported targets

  • for PXT/microbit (The metadata above is needed for package search.)
esp8266=github:elecfreaks/pxt-esp8266iot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.