Commit 5021a609 authored by martin hou's avatar martin hou

test: adding test code for hibernate wakeup detection

parent cd2518b6
...@@ -14,9 +14,9 @@ export function Home() { ...@@ -14,9 +14,9 @@ export function Home() {
jensen.connect(); jensen.connect();
jensen.onconnect = () => { jensen.onconnect = () => {
console.log('connect successfully'); console.log('connect successfully');
jensen.onwakeup = function() { jensen.addWakeupListener(function() {
console.log('从休眠中恢复过来了?'); console.log('从休眠中恢复过来了?');
} });
jensen.getDeviceInfo().then((info) => { jensen.getDeviceInfo().then((info) => {
console.log('getDeviceInfo', info); console.log('getDeviceInfo', info);
alert(info.sn + ' connected'); alert(info.sn + ' connected');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment