You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Allow ex_doc to process grisp dep
This is an hack because we do not support ExDoc in grisp
* Restructure README headings to appear better in the exdoc overview
* Add ex_doc gen to CI
Copy file name to clipboardExpand all lines: README.md
+26-26Lines changed: 26 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,42 +2,43 @@
2
2
3
3
GRiSP.io Client Library for GRiSP
4
4
5
-
Table of content
5
+
## Table of content
6
6
7
7
-[grisp\_connect](#grisp_connect)
8
-
-[Usage](#usage)
9
-
-[Option 1. Use the `rebar3_grisp` plugin](#option-1-use-the-rebar3_grisp-plugin)
10
-
-[Option 2. Add `grisp_connect` Manually to your Application](#option-2-add-grisp_connect-manually-to-your-application)
11
-
-[Further Steps](#further-steps)
12
-
-[Check whether the board is connected](#check-whether-the-board-is-connected)
13
-
-[Link your Device to your GRiSP.io Account](#link-your-device-to-your-grispio-account)
8
+
-[Table of content](#table-of-content)
9
+
-[Usage](#usage)
10
+
-[Option 1. Use the `rebar3_grisp` plugin](#option-1-use-the-rebar3_grisp-plugin)
11
+
-[Option 2. Add `grisp_connect` Manually to your Application](#option-2-add-grisp_connect-manually-to-your-application)
12
+
-[Further Steps](#further-steps)
13
+
-[Check whether the board is connected](#check-whether-the-board-is-connected)
14
+
-[Link your Device to your GRiSP.io Account](#link-your-device-to-your-grispio-account)
14
15
-[Troubleshooting:](#troubleshooting)
15
16
-[Need to Unlink a Device?](#need-to-unlink-a-device)
16
-
-[Environment Options](#environment-options)
17
+
-[Environment Options](#environment-options)
17
18
-[`connect`](#connect)
18
19
-[`ntp`](#ntp)
19
20
-[`ws_request_timeout`](#ws_request_timeout)
20
21
-[`ws_ping_timeout`](#ws_ping_timeout)
21
22
-[`logs_interval`](#logs_interval)
22
23
-[`logs_batch_size`](#logs_batch_size)
23
24
-[Custom TLS options](#custom-tls-options)
24
-
-[See all Logs on GRiSP.io](#see-all-logs-on-grispio)
25
-
-[Development](#development)
26
-
-[Local Development](#local-development)
27
-
-[Development on GRiSP Hardware](#development-on-grisp-hardware)
28
-
-[Production on GRiSP Hardware](#production-on-grisp-hardware)
25
+
-[See all Logs on GRiSP.io](#see-all-logs-on-grispio)
26
+
-[Development](#development)
27
+
-[Local Development](#local-development)
28
+
-[Development on GRiSP Hardware](#development-on-grisp-hardware)
29
+
-[Production on GRiSP Hardware](#production-on-grisp-hardware)
29
30
30
31
31
32
Add this application as a dependency in your GRiSP2 project.
32
33
Your board will connect securely using mTLS to the [GRiSP.io](https://grisp.io) services.
33
34
34
-
# Usage
35
+
##Usage
35
36
36
-
## Option 1. Use the `rebar3_grisp` plugin
37
+
###Option 1. Use the `rebar3_grisp` plugin
37
38
38
39
The `configure` method of the `rebar3_grisp` version >= 2.6.0 will add `grisp_connect` with the needed configurations to your GRiSP application. See [GRiSP Wiki/Use-your-GRiSP-2-board-with-GRiSP.io](https://github.com/grisp/grisp/wiki/Use-your-GRiSP-2-board-with-GRiSP.io).
39
40
40
-
## Option 2. Add `grisp_connect` Manually to your Application
41
+
###Option 2. Add `grisp_connect` Manually to your Application
41
42
42
43
Add
43
44
@@ -59,9 +60,9 @@ You can find your device linking token on [GRiSP.io/grisp_manager](https://grisp
59
60
60
61
You can also skip this configuration and insert the token manually later.
61
62
62
-
# Further Steps
63
+
##Further Steps
63
64
64
-
## Check whether the board is connected
65
+
###Check whether the board is connected
65
66
66
67
```erlang
67
68
>grisp_connect:is_connected().
@@ -70,7 +71,7 @@ true
70
71
{ok,<<"pong">>}
71
72
```
72
73
73
-
## Link your Device to your GRiSP.io Account
74
+
###Link your Device to your GRiSP.io Account
74
75
75
76
```erlang
76
77
>grisp_connect:link_device(<<"...">>).
@@ -100,7 +101,7 @@ We currently do not expose a public API to unlink a Device. Please reach out to
100
101
101
102
If you encounter any problems or have questions, don't hesitate to contact [support](mailto:grisp@stritzinger.com). Happy coding!
102
103
103
-
# Environment Options
104
+
##Environment Options
104
105
105
106
### `connect`
106
107
@@ -147,7 +148,7 @@ grisp_connect sets the following options as default values if no `tls_server_tru
147
148
]
148
149
```
149
150
150
-
# See all Logs on GRiSP.io
151
+
##See all Logs on GRiSP.io
151
152
152
153
Once this app is started, it forwards all logs to GRiSP.io without the need of setting up anything. The only logs that we do not catch are the ones generated before `grisp_connect` boots.
153
154
If you want to see ALL logs, even from applications that boot before `grisp_connect`, you need to disable the default logger handler and set the grisp_connect handler as the default one. This involves changing the `kernel` and `grisp_connect` app configuration settings in your sys.config file.
@@ -182,9 +183,9 @@ You can copy paste these settings. Here we both swap the default logger handler
182
183
].
183
184
```
184
185
185
-
# Development
186
+
##Development
186
187
187
-
## Local Development
188
+
###Local Development
188
189
189
190
Add an entry in your local hosts file so the domain www.seawater.local points
190
191
to your local development server.
@@ -197,7 +198,7 @@ Run tests:
197
198
198
199
rebar3 ct
199
200
200
-
## Development on GRiSP Hardware
201
+
###Development on GRiSP Hardware
201
202
202
203
Add an entry in the grisp hosts file so the domain www.seawater.local points
203
204
to your local development server.
@@ -215,8 +216,7 @@ rebar.config and then run:
215
216
216
217
rebar3 as dev grisp deploy
217
218
218
-
219
-
## Production on GRiSP Hardware
219
+
### Production on GRiSP Hardware
220
220
221
221
To deploy on GRiSP hardware for production, configure rebar3_grisp's deploy
0 commit comments