botletics / SIM7000-LTE-Shield

Botletics SIM7000 LTE CAT-M1/NB-IoT Shield for Arduino
https://www.botletics.com/products/sim7000-shield
GNU General Public License v3.0
477 stars 215 forks source link

Last-will message #169

Closed pasihe closed 4 years ago

pasihe commented 4 years ago

Tried to send MQTT "last will" but didn't saw any options for that in AT commands. Is this possible with SIM7000?

pasihe commented 4 years ago

My mistake. will can be set with setparams as sim7000 MQTT datasheet says fona.MQTT_setParameter("QOS", "1"); fona.MQTT_setParameter("TOPIC",topic_buffer); fona.MQTT_setParameter("MESSAGE", time_buf); fona.MQTT_setParameter("RETAIN", "0");