Skip to content

Commit

Permalink
Merge pull request #62 from Wolkabout/task/remove_demo
Browse files Browse the repository at this point in the history
remove demo mentions
  • Loading branch information
srdjastankovic authored May 24, 2022
2 parents 93679ce + ea7d0ac commit c40b5fc
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 29 deletions.
28 changes: 13 additions & 15 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
```
----

[![Build Status](https://travis-ci.com/Wolkabout/WolkConnect-Java.svg?branch=master)](https://travis-ci.com/Wolkabout/WolkConnect-Java)

WolkAbout Java Connector for connecting devices to [WolkAbout IoT Platform](https://demo.wolkabout.com/#/login).
WolkAbout Java Connector for connecting devices to WolkAbout IoT Platform instance.

Supported device communication protocols:
* WolkAbout Protocol
Expand Down Expand Up @@ -72,8 +70,8 @@ After creating the device on the Platform, copy the provided credentials into `d
```java
final Wolk wolk = Wolk.builder()
.mqtt()
.host("ssl://api-demo.wolkabout.com:8883")
.sslCertification("ca.crt")
.host("ssl://insert_host:insert_port")
.sslCertification("/INSERT/PATH/TO/YOUR/CA.CRT/FILE")
.deviceKey("devicekey")
.password("password")
.build()
Expand Down Expand Up @@ -127,8 +125,8 @@ Provide an implementation of `onActuationReceived` and `getActuatorStatus`:
```java
final Wolk wolk = Wolk.builder()
.mqtt()
.host("ssl://api-demo.wolkabout.com:8883")
.sslCertification("ca.crt")
.host("ssl://insert_host:insert_port")
.sslCertification("/INSERT/PATH/TO/YOUR/CA.CRT/FILE")
.deviceKey("device_key")
.password("some_password")
.build()
Expand Down Expand Up @@ -172,8 +170,8 @@ Provide an implementation of `onConfigurationReceived` and `getConfigurations`:
```java
final Wolk wolk = Wolk.builder()
.mqtt()
.host("ssl://api-demo.wolkabout.com:8883")
.sslCertification("ca.crt")
.host("ssl://insert_host:insert_port")
.sslCertification("/INSERT/PATH/TO/YOUR/CA.CRT/FILE"))
.deviceKey("device_key")
.password("some_password")
.build()
Expand Down Expand Up @@ -230,8 +228,8 @@ This service can be disabled to reduce bandwidth or battery usage:
```java
final Wolk wolk = Wolk.builder()
.mqtt()
.host("ssl://api-demo.wolkabout.com:8883")
.sslCertification("ca.crt")
.host("ssl://insert_host:insert_port")
.sslCertification("/INSERT/PATH/TO/YOUR/CA.CRT/FILE")
.deviceKey("device_key")
.password("some_password")
.enableKeepAliveService(false)
Expand All @@ -255,8 +253,8 @@ To enable these features, you need to invoke the methods in the builder.
```java
final Wolk wolk = Wolk.builder()
.mqtt()
.host("ssl://api-demo.wolkabout.com:8883")
.sslCertification("ca.crt")
.host("ssl://insert_host:insert_port")
.sslCertification("/INSERT/PATH/TO/YOUR/CA.CRT/FILE")
.deviceKey("device_key")
.password("some_password")
.enableFileManagement()
Expand Down Expand Up @@ -291,8 +289,8 @@ String firmwareVersion = ...;

final Wolk wolk = Wolk.builder()
.mqtt()
.host("ssl://api-demo.wolkabout.com:8883")
.sslCertification("ca.crt")
.host("ssl://insert_host:insert_port")
.sslCertification("/INSERT/PATH/TO/YOUR/CA.CRT/FILE")
.deviceKey("device_key")
.password("some_password")
.enableFirmwareUpdate(firmwareInstaller, firmwareVersion)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/wolkabout/wolk/Wolk.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
*/
public class Wolk {

public static final String WOLK_DEMO_URL = "ssl://api-demo.wolkabout.com:8883";
public static final String WOLK_DEMO_CA = "ca.crt";
public static final String WOLK_DEMO_URL = "ssl://insert_host:insert_port";
public static final String WOLK_DEMO_CA = "/INSERT/PATH/TO/YOUR/CA.CRT/FILE";
private static final Logger LOG = LoggerFactory.getLogger(Wolk.class);
private static final ScheduledExecutorService executor = Executors.newScheduledThreadPool(2);
private boolean keepAliveServiceEnabled = true;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/examples/full_feature_set/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public static void main(String... args) throws IOException {

final Wolk wolk = Wolk.builder()
.mqtt()
.host("ssl://api-demo.wolkabout.com:8883")
.sslCertification("ca.crt")
.host("ssl://insert_host:insert_port")
.sslCertification("/INSERT/PATH/TO/YOUR/CA.CRT/FILE")
.deviceKey("device-key")
.password("device-password")
.build()
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/examples/simple/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public static void main(String[] args) {

final Wolk wolk = Wolk.builder()
.mqtt()
.host("ssl://api-demo.wolkabout.com:8883")
.sslCertification("ca.crt")
.host("ssl://insert_host:insert_port")
.sslCertification("/INSERT/PATH/TO/YOUR/CA.CRT/FILE")
.deviceKey("device_key")
.password("some_password")
.build()
Expand Down
8 changes: 0 additions & 8 deletions src/test/java/com/wolkabout/wolk/WolkTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ public class WolkTest {

@Test
public void connect() {
Wolk wolk = Wolk.builder()
.mqtt()
.host("ssl://api-demo.wolkabout.com:8883")
.sslCertification("ca.crt")
.deviceKey("device_key")
.password("password")
.build()
.build();
}

@Test
Expand Down

0 comments on commit c40b5fc

Please sign in to comment.