Skip to content

Commit

Permalink
Task/change server name (#81)
Browse files Browse the repository at this point in the history
* server name to "insert_host"

* remove from doc

Co-authored-by: srdjanStankovic <srdjanrstankovic@gmail.com>
  • Loading branch information
srdjastankovic and srdjanStankovic authored May 23, 2022
1 parent 90014c7 commit 4cbc7a5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
```
[![Build Status](https://travis-ci.com/Wolkabout/WolkConnect-C.svg?branch=master)](https://travis-ci.com/Wolkabout/WolkConnect-C)
-----
WolkAbout C99 Connector library for connecting devices to [WolkAbout IoT platform](https://demo.wolkabout.com/#/login).
WolkAbout C99 Connector library for connecting devices to WolkAbout IoT platform instance.

WolkConnect-C is transportation layer agnostic which means it is up to the user of the library to open socket to WolkAbout IoT platform,
configure SSL if desired, and forward read/write implementation to WolkConnect-C Connector.
Expand Down Expand Up @@ -61,11 +61,12 @@ Create a device on WolkAbout IoT platform using `Simple example` device type.
This device type fits [simple example](https://github.com/Wolkabout/WolkConnect-C/blob/master/examples/simple/main.c) and demonstrates the periodic sending of a temperature sensor reading.

```c
static const char* device_key = "device_key";
static const char* device_password = "some_password";
static const char* hostname = "api-demo.wolkabout.com";
static int portno = 8883;
static char certs[] = "../ca.crt";
/* WolkAbout Platform device connection parameters */
static const char* device_key = "device_key";
static const char* device_password = "some_password";
static const char* hostname = "insert_host";
static int portno = 80; // TODO: insert port
static char certs[] = "../ca.crt";

/* Sample in-memory persistence storage - size 1MB */
static uint8_t persistence_storage[1024*1024];
Expand Down
2 changes: 1 addition & 1 deletion docs/templates/WolkConnect-Functional-Documentation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


WolkConnect libraries are used to enable a device’s communication with [WolkAbout IoT Platform](https://demo.wolkabout.com/#/login).
WolkConnect libraries are used to enable a device’s communication with WolkAbout IoT platform instance.
Using WolkConnect libraries in the software or firmware of a device will drastically decrease the time to market for developers or anyone wanting to integrate their own product with WolkAbout IoT Platform.

WolkConnect libraries are intended to be used on IP enabled devices. The available WolkConnect libraries (implemented in the following programming languages [C](https://github.com/Wolkabout/WolkConnect-C), [C++](https://github.com/Wolkabout/WolkConnect-Cpp), [Java](https://github.com/Wolkabout/WolkConnect-Java-), [Python](https://github.com/Wolkabout/WolkConnect-Python), [Node-RED](https://github.com/Wolkabout/WolkConnect-Node-RED)) are platform independent for OS based devices, with a special note that the WolkConnect-C library is suitable to be adapted for the use on non-OS devices as WolkConnect libraries have a small memory footprint. More hardware specific WolkConnect libraries are available for [Arduino](https://github.com/Wolkabout/WolkConnect-Arduino), [MicroPython](https://github.com/Wolkabout/WolkConnect-MicroPython) and [Zerynth](https://github.com/Wolkabout/wolkabout-iot).
Expand Down
13 changes: 7 additions & 6 deletions examples/full_feature_set/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
```
[![Build Status](https://travis-ci.com/Wolkabout/WolkConnect-C.svg?branch=master)](https://travis-ci.com/Wolkabout/WolkConnect-C)
-----
WolkAbout C99 Connector library for connecting devices to [WolkAbout IoT platform](https://demo.wolkabout.com/#/login).
WolkAbout C99 Connector library for connecting devices to WolkAbout IoT platform instance.

WolkConnect-C is transportation layer agnostic which means it is up to the user of the library to open socket to WolkAbout IoT platform,
configure SSL if desired, and forward read/write implementation to WolkConnect-C Connector.
Expand Down Expand Up @@ -54,11 +54,12 @@ Create a device on WolkAbout IoT platform using [Full example](https://github.co
**Establishing connection with WolkAbout IoT platform:**

```c
static const char* device_key = "device_key";
static const char* device_password = "some_password";
static const char* hostname = "api-demo.wolkabout.com";
static int portno = 8883;
static char certs[] = "../ca.crt";
/* WolkAbout Platform device connection parameters */
static const char* device_key = "device_key";
static const char* device_password = "some_password";
static const char* hostname = "insert_host";
static int portno = 80; // TODO: insert port
static char certs[] = "../ca.crt";

/* Sample in-memory persistence storage - size 1MB */
static uint8_t persistence_storage[1024 * 1024];
Expand Down
4 changes: 2 additions & 2 deletions examples/full_feature_set/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ static BIO* sockfd;
/* WolkAbout Platform device connection parameters */
static const char* device_key = "device_key";
static const char* device_password = "some_password";
static const char* hostname = "api-demo.wolkabout.com";
static int portno = 8883;
static const char* hostname = "insert_host";
static int portno = 80; // TODO: insert port
static char certs[] = "../ca.crt";

/* Sample in-memory persistence storage - size 1MB */
Expand Down
5 changes: 3 additions & 2 deletions examples/simple/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@
static SSL_CTX* ctx;
static BIO* sockfd;

/* WolkAbout Platform device connection parameters */
static const char* device_key = "device_key";
static const char* device_password = "some_password";
static const char* hostname = "api-demo.wolkabout.com";
static int portno = 8883;
static const char* hostname = "insert_host";
static int portno = 80; // TODO: insert port
static char certs[] = "../ca.crt";

/* Sample in-memory persistence storage - size 1MB */
Expand Down

0 comments on commit 4cbc7a5

Please sign in to comment.