Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.
Alan Yorinks edited this page Jul 4, 2018 · 46 revisions

logo

IMPORTANT NOTE: If you are upgrading to Version 2.22 and use FirmataPlus, please upgrade your version of FirmataPlus as well.

So, what is pymata_aio?

It's the second generation of the PyMata easy-to-use, application programming interface for Arduino Firmata. It uses the Python asyncio library at its core, for maximum concurrency performance.

Three Independent APIs Are Included.

Choose the one that is best suited to your job:

pymata3

The pymata3 API is modeled after the original PyMata API and will seem most familiar to current PyMata users. This API acts as a proxy for the pymata_core API, providing all of the advantages of asyncio, but without having to directly program in asyncio.

Click here to see sample code illustrating pymata3 in use.

pymata_core

This API is a pure asyncio method call API intended for those who wish to use asyncio directly. It exposes its underlying asyncio task/coroutine/futures model to the developer.

Click here to see sample code illustrating pymata_core in use..

pymata_iot

Would you like to connect and control your Arduino over the Internet? PyMata_IOT is a ready to run, WebSocket server application, included with this package. Its API is a set of JSON messages exchanged between your application and the server. Because it uses JSON messages, it is totally language independent. You can write your WebSocket client using Python, JavaScript or any other language of your choosing.

Click here to see a simple HTML/JavaScript web page example that communicates with pymata_iot.

It provides the exact the same functionality as the other two examples above, but it provides a web page with two buttons to turn the LED on and off.

Clone this wiki locally