This sample application demonstrates how to connect with Golioth and publish simple Hello messages. Additionally it allows to configure logging backend to send system logs to Golioth. We recommend running the commands here from the
- Authenticated with Golioth - see Authentication
- Have a project - see Create a Project
- Have a provisioned device and credential for it - see Authorizing Devices
- Network connectivity
Configure the following Kconfig options based on your Golioth credentials and server in your own overlay config file:
GOLIOTH_SERVER_IP_ADDR- Server IPv4 address
GOLIOTH_SERVER_PORT- Server port number - default port is
GOLIOTH_SERVER_DTLS_PSK_ID- PSK ID of registered device
GOLIOTH_SERVER_DTLS_PSK- PSK of registered device
- Espressif SDK
- Nordic SDK
- Others Boards
Configure the following Kconfig options based on your WiFi AP credentials:
- ESP32_WIFI_SSID - WiFi SSID
- ESP32_WIFI_PASSWORD - WiFi PSK
On your host computer open a terminal window, locate the source code of
this sample application (i.e.,
sample/hello) and type:
This is the overlay template for WiFi credentials:
See ESP32 for details on how to use ESP32 board.
🚧 Work in Progress... 🚧
This application has been built and tested with QEMU x86 (qemu_x86) and QEMU ARM Cortex-M3 (qemu_cortex_m3).
On your Linux host computer, open a terminal window, locate the source
code of this sample application (i.e.,
See Networking with QEMU on how to setup networking on host and configure NAT/masquerading to access Internet.
Follow more specific instructions for each supported board architecture on Zephyr's website.