提交 0d16e37a 编写于 作者: C cff-gite

添加接口

Signed-off-by: Ncff-gite <chenfeifei8@huawei.com>
上级 4e8219f9
......@@ -2432,7 +2432,7 @@ sensor.getSensorList((error, data) => {
sensor.getSensorList().then((data) => {
console.info("getSensorList promise in-----------" + data.length);
for (var i = 0; i < data.length; i++) {
console.info("SensorJsTest_109 " + JSON.stringify(data[i]));
console.info("getSensorList " + JSON.stringify(data[i]));
}
}, (error)=>{
console.error('getSensorList failed');
......@@ -2459,7 +2459,7 @@ getSingleSensor(type:SensorType, callback: AsyncCallback&lt;sensor&gt;): void
```
sensor.getSingleSensor(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, (error, data) => {
if (error) {
console.info('SensorJsTest_111 failed');
console.error('getSingleSensor failed');
expect(false).assertTrue();
} else {
console.info("getSingleSensor " + JSON.stringify(data));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册