3.0和master版本都试过了都不行,WiFi和热点也都试过,也都不行 ` Welcome to AliOS Things [ 0.150]AOS uData: udata_service_mgr_init successfully
[ 0.160]AOS uData: abs_data_open successfully
[ 0.170]AOS uData: register service type 0 success
[ 0.180]AOS sensor: drv_mag_memsic_mmc3680kj_open successfully
[ 0.180]AOS uData: abs_data_open successfully
[ 0.190]AOS uData: register service type 1 success
[ 0.200]AOS uData: abs_data_open successfully
[ 0.210]AOS uData: register service type 2 success
[ 0.220]AOS sensor: drv_als_liteon_ltr553_open successfully
[ 0.230]AOS uData: abs_data_open successfully
[ 0.230]AOS uData: register service type 3 success
[ 0.240]AOS sensor: drv_ps_liteon_ltr553_open successfully
[ 0.250]AOS uData: abs_data_open successfully
[ 0.260]AOS uData: register service type 4 success
[ 0.270]AOS sensor: drv_baro_bosch_bmp280_open successfully
[ 0.280]AOS sensor: drv_baro_bosch_bmp280_ioctl successfully
[ 0.280]AOS uData: abs_data_open successfully
[ 0.290]AOS uData: register service type 5 success
[ 0.300]AOS sensor: drv_temp_sensirion_shtc1_open successfully
[ 0.310]AOS uData: abs_data_open successfully
[ 0.320]AOS uData: register service type 6 success
[ 0.320]AOS sensor: drv_humi_sensirion_shtc1_open successfully
[ 0.330]AOS uData: abs_data_open successfully
[ 0.340]AOS uData: register service type 8 success
[ 0.350]AOS uData: cali_example_example_init successfully
[ 0.360]AOS uData: abs_data_cali_init successfully
[ 0.360]AOS uData: udata_init successfully
[ 0.370]sal_wifi Uart dev is not configured, use the default cfg
uart 1 enter uart_receive_start_dma instance 0x40004800== Build on: Mar 24 2020 11:10:30 === [ 2.400]AOS uData: udata_subscribe successfully
[ 2.410]AOS uData: udata_subscribe successfully
[ 2.410]wifi_port Will connect via at cmd: AT+WJAP=P30,987654321
[ 7.420]wifi_port AT command AT+WJAP=P30,987654321 failed
[ 7.620]wifi_port AT command AT+WMAC? succeed, rsp: +WMAC:e47deb141618
OK
[ 7.630]wifi_port mac result:
[ 7.630]NETMGR_WIFI Got ip : 192.168.43.155, gw : 192.168.43.1, mask : 255.255.255.0
[ 7.660]wifi_port AT command AT+WMAC? succeed, rsp: +WMAC:e47deb141618
OK
[ 7.670]wifi_port mac result:
[ 7.680]AOS Hello, WiFi GOT_IP event! at board/developerkit/aos/board_cli.c 216
[ 7.690]AOS Hello, WiFi GOT_IP event! at board/developerkit/aos/board_cli.c 216
[ 7.700]AOS wifi_service_event!
[ 7.710]MQTT Using default hostname: 'a1c01AmHDLo.iot-as-mqtt.cn-shanghai.aliyuncs.com'
[ 7.720]MQTT Using default port: [443]
[ 7.730]MQTT Using default client_id: a1c01AmHDLo.DevelopKit2Temp|timestamp=2524608000000,_v=sdk-c-3.0.1,securemode=2,signmethod=hmacsha256,lan=C,_ss=1,gw=0,ext=0|
[ 7.750]MQTT Using default username: DevelopKit2Temp&a1c01AmHDLo
[ 7.750]MQTT Using default password: ******
[ 7.760]MQTT Using default request_timeout_ms: 5000, configured value(0) out of [1000, 10000]
[ 7.770]MQTT Using default keepalive_interval_ms: 60000, configured value(0) out of [30000, 1200000]
[ 7.790]MQTT Using default read_buf_size: 3072
[ 7.790]MQTT Using default write_buf_size: 3072
[ 7.800]MQTT MQTT init success!
[ 7.990]HAL_TLS Loading the CA root certificate ...
[ 8.000]HAL_TLS ok (0 skipped)
[ 8.000]HAL_TLS Connecting to /a1c01AmHDLo.iot-as-mqtt.cn-shanghai.aliyuncs.com/443...
[prt] dns server: 223.5.5.5 [ 8.030]sal_wifi Server conn (0) successful.
[ 13.020]atparser sem_wait failed
[ 13.090]sal_wifi Server closed event.
[ 13.090]sal_wifi Server conn (0) closed.
[ 13.100]HAL_TLS ip address: 106.15.100.2
[ 13.110]HAL_TLS setsockopt SO_SNDTIMEO timeout: 10s
[ 13.180]sal_wifi Server conn (0) successful.
[ 18.120]atparser sem_wait failed
[ 18.120]HAL_TLS ok
[ 18.120]HAL_TLS . Setting up the SSL/TLS structure...
[ 18.130]HAL_TLS ok
[ 18.140]HAL_TLS Performing the SSL/TLS handshake...
[ 23.340]sal_wifi Server conn (0) disconnected.
[ 23.820]atparser sem_wait failed
[ 33.830]HAL_TLS failed ! mbedtls_ssl_handshake returned -0x6800
[ 33.840]sal_wifi HAL_SAL_Close 777 failed
[ 33.840]HAL_TLS ssl_disconnect
[ 33.850]HAL_TLS handle is NULL
[ 33.850]MQTT TCP or TLS Connection failed`
通过以下命令可以开启磁力计传感器上云功能 :
其他类型的传感器命令如下: 加速度:acc=1 磁力计:mag=1 陀螺仪:gyro=1
环境光:als=1 接近光:ps=1
温度计:temp=1 湿度计:humi=1 气压计:baro=1
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。