From cc186f2b1e53e542a2cbd5af580e6714c1c7c7e7 Mon Sep 17 00:00:00 2001 From: Jun-robot Date: Fri, 24 Oct 2025 00:02:57 +0900 Subject: [PATCH 1/2] docs: fix incorrect class name in README sample --- README.ja.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.ja.md b/README.ja.md index a9d179a..51130be 100644 --- a/README.ja.md +++ b/README.ja.md @@ -354,7 +354,7 @@ from toio import * # 通知ハンドラ def notification_handler(payload: bytearray): - id_info = IdInformation.is_my_data(payload) + id_info = Motor.is_my_data(payload) print(str(id_info)) async def motor_2(): diff --git a/README.md b/README.md index 34ed263..b83e249 100644 --- a/README.md +++ b/README.md @@ -355,7 +355,7 @@ import asyncio from toio import * def notification_handler(payload: bytearray): - id_info = IdInformation.is_my_data(payload) + id_info = Motor.is_my_data(payload) print(str(id_info)) async def motor_2(): From 80970aabe435f372ac0eacf20c07a7f06cd4842a Mon Sep 17 00:00:00 2001 From: Jun-robot Date: Fri, 24 Oct 2025 01:04:02 +0900 Subject: [PATCH 2/2] docs: fix incorrect argument in README sample --- README.ja.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.ja.md b/README.ja.md index 51130be..bd71060 100644 --- a/README.ja.md +++ b/README.ja.md @@ -167,7 +167,7 @@ from toio import * async def scan_and_connect(): dev_list = await BLEScanner.scan(num=1) assert len(dev_list) - cube = ToioCoreCube(dev_list[0]) + cube = ToioCoreCube(dev_list[0].interface) await cube.connect() await asyncio.sleep(3) @@ -204,7 +204,7 @@ from toio import * async def scan_and_connect(): dev_list = await BLEScanner.scan_with_id(cube_id={"C7f"}) assert len(dev_list) - cube = ToioCoreCube(dev_list[0]) + cube = ToioCoreCube(dev_list[0].interface) await cube.connect() await asyncio.sleep(3)