Home > Net >  Ali cloud Iot platform problem of distributed data
Ali cloud Iot platform problem of distributed data

Time:11-24

Environment description:
Multiple equipment connection such as ali Iot product; Upload the data server accepts equipment, and ordered the issuance of the equipment;
Not sure how this environment should be set up, and now is on ali cloud server subscribe, then on the server is to be able to get the equipment sent from data, but how to devices to send data to don't understand, all day in ali website information, no clue, has used the great god, help guide a train of thought:
This server is correct, please subscribe to the implementation of the way, it is, that how to realize distributed function?
Wrong words, how to build the environment?

Online to find the information with Rpc, also tried to send data is timeout (* is ali cloud parameters, in the actual test of not *)

IClientProfile profile=DefaultProfile. GetProfile (" cn - Shanghai ", "* * * * * * * * * * * * *", "* * * * * * * * * * * * * * * * * * *");
DefaultAcsClient client=new DefaultAcsClient (profile);
RRpcRequest request=new RRpcRequest ();
Request. ProductKey="* * * * * * * * * *";
Request. The DeviceName="* * * * * * * * * * * * * *";
Request. RequestBase64Byte="hello world";
String topic="/" + request. ProductKey + "/" + request. DeviceName + "/user/get";
Request. Topic=Topic;
Request. The Timeout=3000;
RRpcResponse response=client. GetAcsResponse (request);

CodePudding user response:

Online, etc., the great god

CodePudding user response:

Ali cloud iot using MQTT

So, direct use of already encapsulated MQTT client (check MQTTnet nuget is), as for the issued? Actually no issued, any mqttclient can subscribe to directly, need not issued

Ps: there is no such thing as issued, statistics and mining to exist, because he saved your data to the temporal database, so want to show and mining data, need to use temporal database mining
  •  Tags:  
  • C#
  • Related