对接云端的并没有该错误,今天早上总是连不上。
mqtt_client_thread|257 :: TOPIC_GET=/x63B2nQ3RWu/SHGateway/get
[inf] iotx_device_info_init(40): device_info created successfully!
[dbg] iotx_device_info_set(50): start to set device info!
[dbg] iotx_device_info_set(64): device_info set successfully!
[dbg] _calc_hmac_signature(211): | source: clientIdx63B2nQ3RWu.SHGatewaydeviceNameSHGatewayproductKeyx63B2nQ3RWutimestamp2524608000000 (91)
[dbg] _calc_hmac_signature(212): | secret: O0A9rTFjytCVWsiBG1QXA5PvBdXMXf67 (32)
[dbg] _calc_hmac_signature(215): | method: hmacsha1
[dbg] _calc_hmac_signature(228): | signature: a320fbcba1d537240139ba00a3f4d99c04413c9d (40)
[dbg] iotx_guider_authenticate(764): ....................................................
[dbg] iotx_guider_authenticate(765): ProductKey : x63B2nQ3RWu
[dbg] iotx_guider_authenticate(766): DeviceName : SHGateway
[dbg] iotx_guider_authenticate(767): DeviceID : x63B2nQ3RWu.SHGateway
[dbg] iotx_guider_authenticate(768): DeviceSecret : O0A9rTFjytCVWsiBG1QXA5PvBdXMXf67
[dbg] iotx_guider_authenticate(769): ....................................................
[dbg] iotx_guider_authenticate(770): PartnerID Buf :
[dbg] iotx_guider_authenticate(771): Guider URL : http://iot-auth.cn-shanghai.aliyuncs.com/auth/devicename
[dbg] iotx_guider_authenticate(775): Guider Timestamp : 2524608000000
[dbg] iotx_guider_authenticate(776): ....................................................
[dbg] iotx_guider_authenticate(777): Guider Sign : a320fbcba1d537240139ba00a3f4d99c04413c9d
[dbg] iotx_guider_authenticate(782): ....................................................
[dbg] iotx_guider_authenticate(801): req_str = 'productKey=x63B2nQ3RWu&deviceName=SHGateway&signmethod=hmacsha1&sign=a320fbcba1d537240139ba00a3f4d99c04413c9d&version=default&clientId=x63B2nQ3RWu.SHGateway×tamp=2524608000000&resources=mqtt'
[dbg] _http_response(272): requ_payload:
productKey=x63B2nQ3RWu&deviceName=SHGateway&signmethod=hmacsha1&sign=a320fbcba1d537240139ba00a3f4d99c04413c9d&version=default&clientId=x63B2nQ3RWu.SHGateway×tamp=2524608000000&resources=mqtt
[dbg] httpclient_common(770): host: 'iot-auth.cn-shanghai.aliyuncs.com', port: 443
[inf] _ssl_client_init(164): Loading the CA root certificate ...
issuer name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
subject name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
issued on : 1998-09-01 12:00:00
expires on : 2028-01-28 12:00:00
signed using : RSA with SHA1
RSA key size : 2048 bits
basic constraints : CA=true
key usage : Key Cert Sign, CRL Sign
[inf] _ssl_parse_crt(132): crt content:451
[inf] _ssl_client_init(172): ok (0 skipped)
[inf] TLSConnectNetwork(337): Connecting to /iot-auth.cn-shanghai.aliyuncs.com/443...
[inf] connect_callback(48):
[inf] TLSConnectNetwork(342): ok
[inf] TLSConnectNetwork(347): . Setting up the SSL/TLS structure...
[inf] TLSConnectNetwork(357): ok
[inf] TLSConnectNetwork(392): Performing the SSL/TLS handshake...
[inf] TLSConnectNetwork(396): failed ! mbedtls_ssl_handshake returned -0x2700
[err] httpclient_conn(81): establish connection failed
[err] httpclient_common(776): httpclient_connect is error,ret = -8
[dbg] _iotId_iotToken_http(389): http response:
[err] iotx_guider_authenticate(813): _iotId_iotToken_http() failed
mqtt_client_thread|272 :: AUTH request failed!
代码总体上都是阿里sdk的打印,里面自己的打印基本去掉了,希望有心人可以解答
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。