Hi All,
[SOLVED]Increased in PubSubClient.h the MQTT_MAX_PACKET_SIZE to 512. Been a good learning . But it also triggered to use, instead of MQTT, the B4RSerializer which receives data from Domoticz - need to explore how to build B4RSerializer data from non B4X applications - i.e. sending data like boolean,byte,int.
[sorry for long note] seeking some thoughts on the cause of following strange behaviour:
Home Automation Domoticz server, running on a Raspberry Pi, publishes MQTT messages via topic "domoticz/out" - using Mosquitto Broker default port 1883. Incoming messages from MQTT to Domoticz can be read from topic "domoticz/in". To receive both, subscribe to "domoticz/#" .
Test 1
Increased in PubSubClient.h the MQTT_MAX_PACKET_SIZE to 256 - did not solve.
Why are no messages received for topic "domoticz/out" by the B4R MQTT client?
There are no error messages displayed.
Any hints appreciated
[SOLVED]Increased in PubSubClient.h the MQTT_MAX_PACKET_SIZE to 512. Been a good learning . But it also triggered to use, instead of MQTT, the B4RSerializer which receives data from Domoticz - need to explore how to build B4RSerializer data from non B4X applications - i.e. sending data like boolean,byte,int.
[sorry for long note] seeking some thoughts on the cause of following strange behaviour:
Home Automation Domoticz server, running on a Raspberry Pi, publishes MQTT messages via topic "domoticz/out" - using Mosquitto Broker default port 1883. Incoming messages from MQTT to Domoticz can be read from topic "domoticz/in". To receive both, subscribe to "domoticz/#" .
Test 1
- B4J v5.50 Beta #2 MQTT Client (Windows PC, jMQTT v1.00) connects to the Mosquitto MQTT broker and receives messages from topic "domoticz/out" [OK].
- B4R v1.80 MQTT Client (Arduino MEGA, Ethernet, rMQTT v1.30) connects to the Mosquitto MQTT broker, subscribes to "domoticz/out" but does not receive messages from topic "domoticz/out" [NOT OK].
- Tested an Arduino Sketch using the pubsubclient library and same behaviour = no messages for topic "domoticz/out" received.
- B4J v5.50 Beta #2 MQTT Broker & Client (Windows PC, jMQTT v1.00, jMQTTBroker v1.04) sending messages from topic "domoticz/out" (simulating Domoticz).
- B4R v1.80 MQTT Client (Arduino MEGA, Ethernet, rMQTT v1.30) connects to the B4J MQTT broker , subscribes to "domoticz/out" and receives messages from topic "domoticz/out" as published by the B4J MQTT Broker [OK].
- B4R v1.80 MQTT Client (Arduino MEGA, Ethernet, rMQTT v1.3) connects to the Mosquitto MQTT broker, , subscribes to "domoticz/#", receives messages from topic "domoticz in" [OK] but does not receive messages from topic "domoticz/out" [NOT OK].
Increased in PubSubClient.h the MQTT_MAX_PACKET_SIZE to 256 - did not solve.
Why are no messages received for topic "domoticz/out" by the B4R MQTT client?
There are no error messages displayed.
Any hints appreciated
Last edited: