How Can We Help?
Connecting the ACE-GTW-4G gateway with ThingSpeak Broker
Setup your ACE-GTW-4G Gateway
Thanks to change with your data the:
- ID
- Abc1EfGhIj2KlMnOpQ3 in the example
- Pasword
- X1y2ZaBcDE34FgHiJkLm in the example
- Channels tag name
- channels/123456/publish
For your information, in this configuration:
- 192.168.8.200 is a Modbus-TCP server device that is accessed by the gateway
- No device on USB port
- 192.168.8.8 is the LAN IP Gateway
- 192.168.111.xxx is the WiFi WWAN port with Internet access
Be sure that :
- The GTW time is up to date (Need for TLS certificate)
- No “System Functions” activated in “System Functions – Subscribe” tab
- Only 1 tag PUB for your first test, like “channels/123456/publish” but with your data
- No Common tag prefix/suffix in “Topics – General Settings” tab
- Respect the format “field1=@” for the payload
config mqttconfig
option qos_q '0'
option baudrate '9600'
option parity 'None'
option databits '8'
option stopbits '1'
option timeout '3'
option interframe '1'
option projectname 'ACE'
option usbport '/dev/ttyACM0'
option gnssusbport '/dev/ttyUSB1'
option optioncertif '0'
option advancedmqtt '1'
option loginpassword '1'
option host_h 'mqtt3.thingspeak.com'
option clientid 'Abc1EfGhIj2KlMnOpQ3'
option password_P 'X1y2ZaBcDE34FgHiJkLm'
option username_u 'Abc1EfGhIj2KlMnOpQ3'
option optiondebugmqtt '1'
option loglevel '7'
option port_p '8883'
option tls '1'
option client_cert '0'
config topics
option sub '0'
option active '1'
option fc_modbus '03'
option format_reg 'ui16'
option swap_16 '0'
option topic_t 'channels/123456/publish'
option payload 'field1=@'
option device_id '4'
option poll '5'
option slaveid '10'
option address '10'
option deadband '0'
config devices
option device_id '0'
option device_desc 'USB port'
option device_type '0'
config general
option version '3.0'
config devices
option device_id '4'
option device_port '502'
option device_type '1'
option device_ip '192.168.8.200'
Setup the channel and MQTT device with ThingSpeak
On https://thingspeak.mathworks.com
![]() |
![]() |

