Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] MQTT and AT COMMANDS

Hi Michell,
 
Every mobile module is slightly different and the AT commands may vary slightly, I recommend taking a look at the AT command documentation for the specific module (I had a look at the Quectel website, but it looks like you need to be a distributor to get documentation).
 
What you basically need to do though is use the AT commands to open a TCP socket to the server, you can then send data over serial which will be sent to the broker.
 
This example here might help: https://vsblogs.wordpress.com/2013/11/28/tcp-connection-over-gprs-using-sim900-and-at-commands/
 
In order to do this, you'll probably need to create a bespoke Network class that you provide to the MqttClient that can manage the conversion between send and receive to the relevant combination of AT commands / Serial support. Ian Craggs has written a good blog post that explains this in a bit more detail here: http://modelbasedtesting.co.uk/?p=131
 
Kind regards,
 
James Sutton
Software Engineer - IoT Foundation - MQTT Open Source Projects
Ops Team - Wimbledon Project

Phone: 01962 815438 | Extension: x372454
E-mail: 
Personal Website: www.jsutton.co.uk
Find me on:      
IBM

Hursley Park
HursleySO212JN
United Kingdom
 
IBM United Kingdom Limited Registered in England and Wales with number 741598 Registered office: PO Box 41, North Harbour, Portsmouth, Hants. PO6 3AU
 
 
----- Original message -----
From: Michell Castaño <mcastano@xxxxxxxxxxxx>
Sent by: paho-dev-bounces@xxxxxxxxxxx
To: Mike Tran <miketran@xxxxxxxxxx>
Cc: paho-dev@xxxxxxxxxxx, paho-dev-request@xxxxxxxxxxx
Subject: [paho-dev] MQTT and AT COMMANDS
Date: Tue, Oct 4, 2016 11:02 PM
 
Hi, Mike 
Hi Group
 
Best Regards
 
I've a questions about the way of connect, publish and subscript with the MQTT Embedded Library with a Quectel Module (AT COMMANDS) and an Atmega Microcontroller. Do you have any idea about it?.
 
Thanks for all,
Greetings from Colombia.
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
 
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


Back to the top