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 Distribution
emo-connect-python-0.1.0.tar.gz
(14.0 kB
view hashes)
Built Distribution
Close
Hashes for emo_connect_python-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18f016745ce9315633b842329e6e63efbac9af764dda80998e525d1fcea58972 |
|
MD5 | cac95e319202550cd22868afe3047af2 |
|
BLAKE2b-256 | 94ca9570ca3b72098b922503fe978af59efde5b79b0cc190f7410e60968a1bc9 |