Code Monkey home page Code Monkey logo

pxt-wifi-alex's Introduction

pxt-wifi

MakeCode extension for WiFi:bit:
alt text
It's used for connecting to the Internet or local network through WiFi connection. You can send or receive information by using HTTP methods or AT commands. WiFi:bit can also be used as breakout board (edge connector).

Commands

Connect to WiFi:bit

alt text
Makes a serial connection between micro:bit and WiFi:bit. You should put it in a start block of every WiFi:bit project.

Connect to WiFi network

alt text
Connects WiFi:bit to WiFi network. You should execute it only once. Next time WiFi:bit will connect automatically.

Disconnect from WiFi network

alt text
Disconnects WiFi:bit from WiFi network. You need this command only if you're paranoid. :)

Execute AT command

alt text
Executes AT command. It's for power users, for total control or cases which can't be covered with other commands. List of AT commands.

Execute HTTP method

alt text
Main command of this extension. It's used for data sending, changing, deleting and fetching by using some of the HTTP methods. This is basic form of command. You can expand it with optional parameters (body and headers).

Blynk: write pin value

alt text
Write Blynk pin value. Blynk is popular IoT service. This command simplifies its usage with WiFi:bit projects.

Blynk: read pin value

alt text
Read Blynk pin value. Blynk is popular IoT service. This command simplifies its usage with WiFi:bit projects.

Newline

alt text
Line separator. It's used in multiline body and headers. You should put it between each pair of lines.

Change HTTP method wait period

alt text
Changes HTTP method wait period. It's for power users and available only in JavaScript part of MakeCode. By defaut HTTP method execution time is cca. 15 seconds. That's OK for almost all networks. If you have good network you can reduce execution time. Default input value is 1000. If you, for example, set it to 500 execution will be twice faster. You can also slow execution by setting a value which is greater than 1000.

Examples

Connect to the Internet

alt text

Send dice value to ThingSpeak

alt text

Send some data to Beebotte

alt text

Read and write Blynk pin values

alt text
For explanation of examples and more details, check official tutorial.

License

MIT License

Supported targets

  • for PXT/microbit

pxt-wifi-alex's People

Contributors

bosnivan avatar acastanet avatar

Watchers

James Cloos avatar

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.