Minor fixes in instructions of MQTT Receiver & Publisher
@@ -8,7 +8,7 @@ Purpose:
Prerequisites:
1) Save this sample
- 2) Before run this MQTT sample, set up mosquitto server which support mqtt
+ 2) Before running this MQTT sample, set up mosquitto server which supports MQTT
3) After the set up ,start the mosquitto server by running the following command
sudo service mosquitto start
@@ -22,7 +22,9 @@ Testing the Sample:
mosquitto_pub -t 'mqtt_topic_input' -m '<events><event><name>sugar</name><amount>300.0</amount></event></events>'
Option2: Publish events with mqtt sample client:
- Run "ant" command in the terminal:
+ Open a terminal and navigate to <WSO2_SP_HOME>/samples/sample-clients/mqtt-client
+ Run the following command in the terminal:
+ ant
If you want to publish custom number of events, you need to run "ant" command as follows
ant -DnoOfEventsToSend=5
