File: enable_remote_access.py

package info (click to toggle)
flux-led 1.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 832 kB
  • sloc: python: 13,359; makefile: 9; sh: 5
file content (19 lines) | stat: -rw-r--r-- 351 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import asyncio
import logging
import pprint

from flux_led.aioscanner import AIOBulbScanner

logging.basicConfig(level=logging.DEBUG)


async def go():
    scanner = AIOBulbScanner()
    pprint.pprint(
        await scanner.async_enable_remote_access(
            "192.168.106.198", "ra8815us02.magichue.net", 8815
        )
    )


asyncio.run(go())