Skip to content

Commit

Permalink
zephyr: hello_nrf91_offloaded: document hexstring
Browse files Browse the repository at this point in the history
Clarify how sending credentials to the nrf91 modem:
- Add double quotes around PSK-ID and PSK
- Add sample command to illustrate how to hex-encode an ASCII string

Signed-off-by: Mike Szczys <[email protected]>
  • Loading branch information
szczys committed Jan 24, 2025
1 parent 81bb59b commit 2f80462
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/zephyr/hello_nrf91_offloaded/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ AT%CMNG=0,515765868,4,my-psk-id
AT%CMNG=0,515765868,3,my-psk-encoded-as-hexstring
```

Note: the PSK *must* be encoded as hexadecimal values. One way to
convert your ASCII-encoded PSK is to use the following Linux command:

```
$ echo "my-golioth-psk" | tr -d '\n' | xxd -ps -c 200
6d792d676f6c696f74682d70736b
```

##### Using `nrf_modem_at` application specific shell command

This application comes with `nrf_modem_at` Zephyr shell command. It can
Expand Down

0 comments on commit 2f80462

Please sign in to comment.