LKMgwDownListener Protocol Reference

Conforms to NSObject
Declared in LKMobileGateway.h

– onDownstream:data: required method

topic-消息topic,data-消息内容,NSString 或者 NSDictionary

- (void)onDownstream:(NSString *)topic data:(id _Nullable)data

Discussion

topic-消息topic,data-消息内容,NSString 或者 NSDictionary

Declared In

LKMobileGateway.h

– shouldHandle: required method

数据使用onDownstream:data:上抛时,可以先过滤一遍,如返回NO,则不上传,返回YES,则会使用onDownstream:data:上抛

- (BOOL)shouldHandle:(NSString *)topic

Discussion

数据使用onDownstream:data:上抛时,可以先过滤一遍,如返回NO,则不上传,返回YES,则会使用onDownstream:data:上抛

Declared In

LKMobileGateway.h