Skip to content

0xD34D/emo-connect-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())

About

Python library for connecting and interacting with an EMO pet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages