Quantcast

MQTT help on new system

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

MQTT help on new system

Craig Lindholm
Ok. Finally got MH running on new system. That GD library kills me everytime

I had mqtt running great on my old system, but am having issues on new system I can read mqtt messages, but cant publish. the system crashes. when starting MH, I get:

03/18/17 21:42:18 *** mqtt mqtt_connect Socket (127.0.0.1:1883,122)
03/18/17 21:42:18 *** mqtt Socket check (122) [  ]: Connected
03/18/17 21:42:18 *** mqtt smqtSubscribe Received: ConnAck/at-most-once Connection Accepted
03/18/17 21:42:18 *** mqtt smqtSubscribe Sub 1 Received: (--No $$msg{string}--)
03/18/17 21:42:18 *** mqtt smqtSubscribe Initializing MQTT connection ...
03/18/17 21:42:18 *** mqtt added MQTT check_for_data ...

03/18/17 21:42:18 Oops1: Use of uninitialized value in concatenation (.) or string at /home/pi/mh/misterhouse/bin/../lib/mqtt.pm line 776.

03/18/17 21:42:18 *** mqtt mqtt set smqtSubscribe: [(on), (mqtt=HASH(0x33551e0)), ]
03/18/17 21:42:18 *** mqtt mqtt set smqtSubscribe: isa mqtt

in my .pl file, I have:

# MQTT stuff
# noloop=start
require mqtt; 
$smqtSubscribe = new mqtt('smqtSubscribe', '127.0.0.1', 1883, 'MH/#', "", "", 122);
$pmqtEntrance_Lights = new mqtt_Item($smqtSubscribe, "MH/Entrance/Light");
tie_items $Entrance_Lights $pmqtEntrance_Lights;
tie_items $pmqtEntrance_Lights $Entrance_Lights;


Has any seen this issue?

Craig

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Fwd: MQTT help on new system

Craig Lindholm
Sorry Guys. I think it's working now.

I had to plug in my usb-rs232 adapters. The system was crashing when they weren't installed. Still getting the Oops1 message though...

Craig



---------- Forwarded message ----------
From: Craig Lindholm <[hidden email]>
Date: Sat, Mar 18, 2017 at 9:49 PM
Subject: MQTT help on new system
To: Misterhouse <[hidden email]>


Ok. Finally got MH running on new system. That GD library kills me everytime

I had mqtt running great on my old system, but am having issues on new system I can read mqtt messages, but cant publish. the system crashes. when starting MH, I get:

03/18/17 21:42:18 *** mqtt mqtt_connect Socket (127.0.0.1:1883,122)
03/18/17 21:42:18 *** mqtt Socket check (122) [  ]: Connected
03/18/17 21:42:18 *** mqtt smqtSubscribe Received: ConnAck/at-most-once Connection Accepted
03/18/17 21:42:18 *** mqtt smqtSubscribe Sub 1 Received: (--No $$msg{string}--)
03/18/17 21:42:18 *** mqtt smqtSubscribe Initializing MQTT connection ...
03/18/17 21:42:18 *** mqtt added MQTT check_for_data ...

03/18/17 21:42:18 Oops1: Use of uninitialized value in concatenation (.) or string at /home/pi/mh/misterhouse/bin/../lib/mqtt.pm line 776.

03/18/17 21:42:18 *** mqtt mqtt set smqtSubscribe: [(on), (mqtt=HASH(0x33551e0)), ]
03/18/17 21:42:18 *** mqtt mqtt set smqtSubscribe: isa mqtt

in my .pl file, I have:

# MQTT stuff
# noloop=start
require mqtt; 
$smqtSubscribe = new mqtt('smqtSubscribe', '127.0.0.1', 1883, 'MH/#', "", "", 122);
$pmqtEntrance_Lights = new mqtt_Item($smqtSubscribe, "MH/Entrance/Light");
tie_items $Entrance_Lights $pmqtEntrance_Lights;
tie_items $pmqtEntrance_Lights $Entrance_Lights;


Has any seen this issue?

Craig


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fwd: MQTT help on new system

H Plato
Looking at the code, I wouldn’t worry about the Oops message, I think Neil’s aware that it throws a warning:

# @FIXME: Use of uninitialized value

when you turn debug off it should go away.
On Mar 19, 2017, at 10:25 AM, Craig Lindholm <[hidden email]> wrote:

Sorry Guys. I think it's working now.

I had to plug in my usb-rs232 adapters. The system was crashing when they weren't installed. Still getting the Oops1 message though...

Craig



---------- Forwarded message ----------
From: Craig Lindholm <[hidden email]>
Date: Sat, Mar 18, 2017 at 9:49 PM
Subject: MQTT help on new system
To: Misterhouse <[hidden email]>


Ok. Finally got MH running on new system. That GD library kills me everytime

I had mqtt running great on my old system, but am having issues on new system I can read mqtt messages, but cant publish. the system crashes. when starting MH, I get:

03/18/17 21:42:18 *** mqtt mqtt_connect Socket (127.0.0.1:1883,122)
03/18/17 21:42:18 *** mqtt Socket check (122) [  ]: Connected
03/18/17 21:42:18 *** mqtt smqtSubscribe Received: ConnAck/at-most-once Connection Accepted
03/18/17 21:42:18 *** mqtt smqtSubscribe Sub 1 Received: (--No $$msg{string}--)
03/18/17 21:42:18 *** mqtt smqtSubscribe Initializing MQTT connection ...
03/18/17 21:42:18 *** mqtt added MQTT check_for_data ...

03/18/17 21:42:18 Oops1: Use of uninitialized value in concatenation (.) or string at /home/pi/mh/misterhouse/bin/../lib/mqtt.pm line 776.

03/18/17 21:42:18 *** mqtt mqtt set smqtSubscribe: [(on), (mqtt=HASH(0x33551e0)), ]
03/18/17 21:42:18 *** mqtt mqtt set smqtSubscribe: isa mqtt

in my .pl file, I have:

# MQTT stuff
# noloop=start
require mqtt; 
$smqtSubscribe = new mqtt('smqtSubscribe', '127.0.0.1', 1883, 'MH/#', "", "", 122);
$pmqtEntrance_Lights = new mqtt_Item($smqtSubscribe, "MH/Entrance/Light");
tie_items $Entrance_Lights $pmqtEntrance_Lights;
tie_items $pmqtEntrance_Lights $Entrance_Lights;


Has any seen this issue?

Craig

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Loading...