openharmony short range(wifi,bt,gps) test in shell
hdc shell mount -o rw,remount /
hdc file send 文件路径 /system/app
进入 hdc shell
aa start -b com.motilyfor.testservice -a com.motilyfor.entry.MainAbility
hdc shell mount -o rw,remount /
hdc file send 文件路径 /system/app
重启
进入 hdc shell
aa start -b com.motilyfor.testservice -a com.motilyfor.entry.MainAbility
配置项操作 | |
---|---|
param get [key] | keyname |
param set key value | key value |
param wait key value | key value value """val"val |
param dump |
key | value |
---|---|
wifi.op | enable |
disable | |
scan | |
connect | |
disconnect | |
isactive | |
isconnect | |
wifi.ssid | wifi 名 |
wifi.psw | wifi 密码 |
eg: param set wifi.op enable 开启wifi
param set wifi.op disable 关闭wifi
连接wifi
param set wifi.ssid motilyfor
param set wifi.psw 12345678
param set wifi.op connect 连接wif