Python library for connecting and interacting with an EMO pet
Project description
emo-connect-python
Python library for connecting and interacting with an EMO pet
Usage
pip install emo-connect-python
Example
import asyncio
import json
import logging
from emoconnect.EmoConnectManager import EmoConnectManager
from emoconnect.ble.request import StateRequest
logging.basicConfig(format='[EMO] %(asctime)s %(levelname)s %(message)s')
logger = logging.getLogger()
# can be changed to logging.DEBUG for debugging issues
logger.setLevel(logging.INFO)
async def main():
ecm = EmoConnectManager()
await ecm.connectToEmo()
state = await ecm.sendRequest(StateRequest.everything())
print(state)
await ecm.disconnect()
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for emo_connect_python-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cef87f156d36148c756ffaa0107a927749afdb004016147cbda0bb7d1877dc86 |
|
MD5 | 60d1eda64cb68ea206a10fb189173865 |
|
BLAKE2b-256 | 8a0144865a143347b17d4767dd8aa5066458c9618e7c7bd85a32e9cb20c67822 |