# printer-controller-spike **Repository Path**: damoncheny/printer-controller-spike ## Basic Information - **Project Name**: printer-controller-spike - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-20 - **Last Updated**: 2024-05-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Harmony Spike ## Web-view ### uages 1. use Web component for html display 2. use web-view controller for webview communicate 3. use postMessage for html to App communicate ### issue ## mDNS ### usage 1. search printer in local lan ### issues 1. mdns can't get Printer ip 2. mdns serviceFound Data structure is incorrect as the definition file 3. mdns service attribute is empty ## RCP Request ### usage ### issue {"code":1007900004,"data":"A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision."} ## Print ### usage 1. need privacy : ohos.permission.PRINT ### issue 1. can't get file uri ## Scan 1. has no scan capability ## Wifi Setup ### BLE 1. 需要在代码包中申明权限 ``` // BLE介绍 https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-bluetooth-ble-0000001813576576#ZH-CN_TOPIC_0000001813576576__writecharacteristicvalue // 权限列表介绍 https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/permissions-for-all-0000001820999669 // 使用流程介绍 https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/request-user-authorization-0000001774279718 { "name": "ohos.permission.ACCESS_BLUETOOTH", "reason": "$string:ble_reason", "usedScene": { "abilities": [ "EntryAbility" ], "when":"inuse" } }, ``` 2. 使用前检查是否有使用权限 3. 若无权限则提示用户并跳转设置页面 4. 获取权限后继续使用