Cleanup
This commit is contained in:
parent
f2db6fa24c
commit
942417399b
@ -77,7 +77,7 @@ public class MqttSslClient {
|
|||||||
client.connect(options);
|
client.connect(options);
|
||||||
Thread.sleep(3000);
|
Thread.sleep(3000);
|
||||||
MqttMessage message = new MqttMessage();
|
MqttMessage message = new MqttMessage();
|
||||||
message.setPayload("{\"key1\":\"zaloopa\", \"key2\":true, \"key3\": 3.0, \"key4\": 4}".getBytes());
|
message.setPayload("{\"key1\":\"value1\", \"key2\":true, \"key3\": 3.0, \"key4\": 4}".getBytes());
|
||||||
client.publish("v1/devices/me/telemetry", message);
|
client.publish("v1/devices/me/telemetry", message);
|
||||||
client.disconnect();
|
client.disconnect();
|
||||||
System.out.println("Disconnected");
|
System.out.println("Disconnected");
|
||||||
|
|||||||
@ -15,7 +15,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
DOMAIN_SUFFIX="$(hostname)"
|
DOMAIN_SUFFIX="$(hostname)"
|
||||||
|
|
||||||
ORGANIZATIONAL_UNIT=Thingsboard
|
ORGANIZATIONAL_UNIT=Thingsboard
|
||||||
ORGANIZATION=Thingsboard
|
ORGANIZATION=Thingsboard
|
||||||
CITY=Piscataway
|
CITY=Piscataway
|
||||||
@ -32,7 +31,6 @@ SERVER_KEYSTORE_DIR="../../../../application/src/main/resources/keystore/"
|
|||||||
CLIENT_KEYSTORE_PASSWORD=client_ks_password
|
CLIENT_KEYSTORE_PASSWORD=client_ks_password
|
||||||
CLIENT_KEY_PASSWORD=client_key_password
|
CLIENT_KEY_PASSWORD=client_key_password
|
||||||
|
|
||||||
CLIENT_TRUSTSTORE="client_truststore"
|
|
||||||
CLIENT_KEY_ALIAS="clientalias"
|
CLIENT_KEY_ALIAS="clientalias"
|
||||||
CLIENT_FILE_PREFIX="mqttclient"
|
CLIENT_FILE_PREFIX="mqttclient"
|
||||||
|
|
||||||
|
|||||||
@ -19,8 +19,8 @@ usage() {
|
|||||||
echo "This script generates thingsboard server's ssl certificate"
|
echo "This script generates thingsboard server's ssl certificate"
|
||||||
echo "and optionally copies it to the server's resource directory."
|
echo "and optionally copies it to the server's resource directory."
|
||||||
echo "usage: ./server.keygen.sh [-c flag] [-d directory] [-p file]"
|
echo "usage: ./server.keygen.sh [-c flag] [-d directory] [-p file]"
|
||||||
echo " -c | --copy flag Set if copy keystore to server directory needed. Default value is true"
|
echo " -c | --copy flag Specifies if the keystore should be copied to the server directory. Defaults to true"
|
||||||
echo " -d | --dir directory Server keystore directory, where the generated keystore file will be copied."
|
echo " -d | --dir directory Server keystore directory, where the generated keystore file will be copied. If specified, overrides the value from the properties file"
|
||||||
echo " Default value is SERVER_KEYSTORE_DIR property from properties file"
|
echo " Default value is SERVER_KEYSTORE_DIR property from properties file"
|
||||||
echo " -p | --props | --properties file Properties file. default value is ./keygen.properties"
|
echo " -p | --props | --properties file Properties file. default value is ./keygen.properties"
|
||||||
echo " -h | --help | ? Show this message"
|
echo " -h | --help | ? Show this message"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user