Adafruit_MQTT_Library icon indicating copy to clipboard operation
Adafruit_MQTT_Library copied to clipboard

add support for Adafruit FONA 3G Cellular

Open jhonoryza opened this issue 8 years ago • 5 comments

can u add this feature support for Adafruit FONA 3G Cellular?

jhonoryza avatar Sep 27 '17 03:09 jhonoryza

Have they included 3G Cellular Support yet?did you figure out how to work with 3G module?

kamrulroky avatar Nov 05 '17 13:11 kamrulroky

i have figure out, and have ported the code, but its not reliable :(

jhonoryza avatar Mar 10 '18 14:03 jhonoryza

@jhonoryza can you share with me if it is possible? mail: [email protected]. tried lots of things, but couldn't get expected result :(

kamrulroky avatar Mar 19 '18 07:03 kamrulroky

here is porting adafruit fona from botletics, support 2g 3g and 4g, mqtt for 3g still in progress https://github.com/botletics/SIM7000-LTE-Shield

sorry i cant give u my code its too buggy and not reliable here is snippets when connect to mqtt: boolean Adafruit_FONA::connectMQTT(){ sendCheckReply(F("AT+NETCLOSE"), ok_reply, 5000); sendCheckReply(F("AT+CIPMODE=0"), ok_reply, 5000); sendCheckReply(F("AT+NETOPEN="TCP",1883"), ok_reply, 30000); readline(20000); sendCheckReply(F("AT+TCPCONNECT="broker.hivemq.com",1883"), F("OK"), 30000); //server baru

return true;

}

jhonoryza avatar Mar 21 '18 07:03 jhonoryza

thank you @jhonoryza , i will try this on my project :)

kamrulroky avatar Mar 21 '18 07:03 kamrulroky