LKMgwLineDownListener Protocol Reference Conforms to NSObject Declared in LKIoTGatewayLine.h Overview 数据下推侦听者 – onDownstream:data: required method 下推数据方法 - (void)onDownstream:(NSString *)topic data:(id _Nullable)data Parameters topic 下推消息的 Topic ,由具体业务确定。下行的完整 Topic 形如: /sys/${subProductKey}/${subDeviceName}/thing/down/abc/cba data 消息内容。可能是 NSString 或者 NSDictionary Discussion 下推数据方法 Declared In LKIoTGatewayLine.h – shouldHandle: required method 数据使用 onDownstream:data: 上抛时,可以先过滤一遍,返回 NO,则不上抛;返回 YES,则会使用 onDownstream:data: 上抛 - (BOOL)shouldHandle:(NSString *)topic Parameters topic 下推消息的 Topic ,由具体业务确定。下行的完整 Topic 形如: /sys/${subProductKey}/${subDeviceName}/thing/down/abc/cba Return Value 返回 NO,则不上抛;返回 YES,则会使用 onDownstream:data: 上抛 Discussion 数据使用 onDownstream:data: 上抛时,可以先过滤一遍,返回 NO,则不上抛;返回 YES,则会使用 onDownstream:data: 上抛 Declared In LKIoTGatewayLine.h