for server package, run InitServer(newconfig ConfigStruct) first to init
for client package, run InitClient(newClientInfo ClientInfoStruct) before use
Notice
For security, we should never store product secret or device secret in client, so the client sdk use a different strategy from the official sdk,
we use the server package to generate all things we need and pass the data to the client
Here are the steps to init the client sdk
run RegisterDeviceRequest first(it doesn't matter even if the device is already registerd), then you will get RegisterDeviceStruct
run RegisterDeviceStruct.GetClientInfoStruct and get all you need to init a client