Skip to content

Commit 2137cc8

Browse files
committed
firmware: golioth_client_config is struct, not typdef
Update to use `struct golioth_client_config` to match changes to SDK made in golioth/golioth-firmware-sdk@c3a1c06 Signed-off-by: Mike Szczys <mike@golioth.io>
1 parent 09850c9 commit 2137cc8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/firmware/golioth-firmware-sdk/authentication/certificate-auth.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ int main(void) {
129129
size_t tls_client_crt_len = sizeof_your_crt_der_byte_array;
130130
size_t tls_client_key_len = sizeof_your_key_der_byte_array;
131131

132-
golioth_client_config_t client_config = {
132+
struct golioth_client_config client_config = {
133133
.credentials = {
134134
.auth_type = GOLIOTH_TLS_AUTH_TYPE_PKI,
135135
.pki = {

docs/firmware/golioth-firmware-sdk/authentication/psk-auth.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ uint8_t* client_psk = pointer_to_your_psk_array;
1515
size_t client_psk_id_len = strlen_of_your_psk_id_array;
1616
size_t client_psk_len = strlen_of_your_psk_array;
1717

18-
golioth_client_config_t client_config = {
18+
struct golioth_client_config client_config = {
1919
.credentials = {
2020
.auth_type = GOLIOTH_TLS_AUTH_TYPE_PSK,
2121
.psk = {

docs/firmware/golioth-firmware-sdk/golioth-client.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ authentication:
2626
const char* golioth_psk_id = "device@project";
2727
const char* golioth_psk = "supersecret";
2828

29-
golioth_client_config_t client_config = {
29+
struct golioth_client_config client_config = {
3030
.credentials = {
3131
.auth_type = GOLIOTH_TLS_AUTH_TYPE_PSK,
3232
.psk = {
@@ -47,7 +47,7 @@ parameter.
4747

4848
```c
4949
int main(void) {
50-
client = golioth_client_create(client_config);
50+
client = golioth_client_create(&client_config);
5151
```
5252
5353
## Registering a Callback Function

0 commit comments

Comments
 (0)