Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

emo_connect_python-0.1.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file emo_connect_python-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for emo_connect_python-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cef87f156d36148c756ffaa0107a927749afdb004016147cbda0bb7d1877dc86
MD5 60d1eda64cb68ea206a10fb189173865
BLAKE2b-256 8a0144865a143347b17d4767dd8aa5066458c9618e7c7bd85a32e9cb20c67822

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page