-
Notifications
You must be signed in to change notification settings - Fork 1
/
script-test.txt
8 lines (6 loc) · 763 Bytes
/
script-test.txt
1
2
3
4
5
6
7
8
# Setup MQTT Connector via HTTP Post
curl -d @./connect-mqtt-source.json -H "Content-Type: application/json" -X POST http://localhost:8083/connectors
# Test MQTT producer (root_default is network name same as folder name contain file docker compose (./root) that we has no definition network parameters on that at all)
docker run -it --rm --name mqtt-publisher --network root_default efrecon/mqtt-client pub -h mosquitto -t "TrackTemperature" -m "{\"deviceId\":\"da153676-b1ba-4225-b785-a86361165890\",\"unixTimestamp\":1563142601,\"temperatureInFahrenheit\":\"98\"}"
# Test MQTT consumer
docker run --rm --network root_default confluentinc/cp-kafka:5.1.0 kafka-console-consumer --bootstrap-server www.tamky.xyz:9092 --topic TrackTemperature --from-beginning