Open jhonoryza opened 6 years ago
Actually I will need to add new MQTT functions in the library for 3G and LTE modules because the SIM5320 has its own MQTT-specific commands (see this MQTT app note) and SIMCom told me they just updated the firmware to support MQTT commands for the SIM7000. This makes it a lot easier than the manual way of sending MQTT packets because the commands would take care of all that good stuff. However, they haven't posted an MQTT application note yet for the SIM7000. I'll keep you posted.
i had try manual way of sending MQTT packets with this 3g module, and its very buggy especially when connect to mqtt server sometimes it fails, so i think the best way is, to wait for SIMCom to add this command to come up..
Yes it would be best to use the specialized MQTT commands.
@botletics @jhonoryza Can I get a sample code on MQTT data subcrice from a topic? Thank you!
You just have to check the SIM5320 MQTT app note.
i have test this library with sim5320 network connection is works, but mqtt aio is not work
Attempting to open comm with ATs ---> AT <--- OK ---> ATE0 <--- OK ---> ATE0 <--- OK ---> AT+CVHU=0 <--- OK ---> ATI <--- Manufacturer: SIMCOM INCORPORATED Model: SIMCOM_SIM5320E Revision: SIM5320E_V1.5 IMEI: 861311005089171 +GCAP: +CGSM,+DS,+ES
OK
FONA is OK Found FONA 3G (European) ---> AT+GSN <--- 861311005089171 Module IMEI: 861311005089171 ---> AT+NETCLOSE <--- Network closed ---> AT+CGATT=1 <--- OK ---> AT+CGSOCKCONT=1,"IP","internet" <--- OK ---> AT+CIPMODE=1 <--- OK ---> AT+NETOPEN=,,1 <--- Network opened Enabled GPRS! ---> AT+CREG? <--- +CREG: 0,1 Network status 1: Registered (home) Connected to cell network! ---> AT+CIPSTATUS <--- ERROR Connecting to MQTT... ---> AT+CIPSHUT <--- ERROR Connection failed Retrying MQTT connection in 5 seconds... ---> AT+CIPSTATUS <--- ERROR ---> AT+CIPCLOSE <--- ERROR ---> AT+CIPSHUT <--- ERROR Connection failed
i think there is no at command for at+cipstatus in sim5320 is there something iam missing?