Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

MQTT Issues


RJP Jul 5, 2025 03:27 PM

Have run into an issue trying to get a CR6-WIFI to output table data over MQTT.

Device is setup to send MQTT table data every 10 minutes. I've selected MQTT publish when creating the program with Shortcut.

 I know the MQTT broker is working as I'm able to send messages to that topic and see them live using a rasp pi to the broker. 

i@Pi:~ $ mosquitto_pub -d -t weather/ -m "Test: It's hot." -u ryan -P ryan
Client (null) sending CONNECT
Client (null) received CONNACK (0)
Client (null) sending PUBLISH (d0, q0, r0, m1, 'weather/', ... (15 bytes))
Client (null) sending DISCONNECT

I believe my settings in the CR6 are correct as I can see the broker responding to the CR6 MQTT Keepalive ping, but it's not sending any table data.  

piPi-Services:~ $ mosquitto_sub -d -t weather/ -u ryan -P ryan
Client (null) sending CONNECT
Client (null) received CONNACK (0)
Client (null) sending SUBSCRIBE (Mid: 1, Topic: weather/, QoS: 0, Options: 0x00)
Client (null) received SUBACK
Subscribed (mid: 1): 0
Client (null) received PUBLISH (d0, q0, r0, m0, 'weather/', ... (15 bytes))
Test: It's hot.
Client (null) sending PINGREQ
Client (null) received PINGRESP

Program below - 

7/5/2025
23:02:29
Created by Short Cut (4.7)
Short Cut Program: temphumidsyncho1.DEF
-Wiring for CR6 SeriesMP100A (CP) (CSL)
U1: Temp Sig, Brown
U2: RH Sig, White
Ground: Yellow
Ground: Screen
12V: Green
05103
U3: Dir VExc, Blue
U4: Dir Sig, Green
Ground: White
U6: Spd Sig, Red
Ground: Black
Ground: Clear
-Measurement LabelsDefault
BattV
PTemp_C
MP100A (CP) (CSL)
AirTC
RH
05103
WS_ms
WindDir
----------------------------------------------------
Table: Hourly
Interval: 60 SEC
Fields:
BattV_Min
BattV_TMn
BattV_Max
BattV_TMx Units: Volts
Units: Volts
Units: Volts
Units: VoltsPTemp_C_Min Units: Deg CPTemp_C_TMn Units: Deg CPTemp_C_MaxUnits: Deg C
PTemp_C_TMxUnits: Deg CAirTC_Min
AirTC_TMn
AirTC_Max
AirTC_TMx
RH_Min
RH_TMn
RH_Max
RH_TMx Units: Deg C
Units: Deg C
Units: Deg C
Units: Deg C
Units: %
Units: %
Units: %
Units: %WS_ms_Max Units: meters/second
WS_ms_TMx Units: meters/second
WS_ms_Min Units: meters/second
WS_ms_TMn Units: meters/second
WindDir Units: degrees
----------------------------------------------------
Table: Seconds
Interval: 60 SEC
Fields:
BattV_Min Units: VoltsAirTC Units: Deg CRH Units: %----------------------------------------------------
Table: DataTableInfo
Fields:
DataTableName(1)
DataTableName(2)
SkippedRecord(1)
SkippedRecord(2)
DataRecordSize(1,1) Units: records
DataRecordSize(1,2) Units: records
DataRecordSize(2,1) Units: records
DataRecordSize(2,2) Units: records
SecsPerRecord(1)
SecsPerRecord(2)
DataFillDays(1,1)
DataFillDays(1,2)
DataFillDays(2,1)
DataFillDays(2,2) Units: days
Units: days
Units: days
Units: daysDataFilled(1,1)
DataFilled(1,2)
DataFilled(1,3)
DataFilled(1,4)
LastPublish(1)
LastPublish(2)
----------------------------------------------------
Table: Public
Fields:
BattV Units: Volts
PTemp_C Units: Deg CAirTC Units: Deg CRH Units: %WS_ms
WindDir Units: meters/second
Units: degrees

 Relevant MQTT settings from datalogger. 

MQTT Enable

Enable MQTT

CampbellCloud
Disabled

MQTT State Enabled 

MQTT session established

MQTT Broker URL 10.1.1.254

MQTT Connection Persistent

MQTT Auto-Publish Data
MQTT Client ID CR6_4481

MQTT User Name ryan

EAP Password value is protected

MQTT Password value is ryan

MQTT Last Will Topic

MQTT Last Will Message

MQTT Base Topic weather/

 

Where to from here? 

Thanks,

Ryan


RJP Jul 7, 2025 04:25 AM

This post is under review.

Log in or register to post/reply in the forum.