@gopalroy/hook
v1.0.0
Published
hook device message
Downloads
3
Readme
设备通知消息
var target = new Hook();
var On1602 = function(code, cmd){
// TODO: ...
};
target.registerDevCmd('Test001', 0x1601, On1602);
target.Notify('Test001', 0x1602);
target.unregisterDevCmd('Test001', 0x1601, On1602);