macOS Clients
We provide a low level plain ANSI C based SDK for use in client applications on macOS.
Libraries can be downloaded from the artifacts repository.
See the Plain C API reference for details about using the client SDK. And the various examples provided to get started.
Examples
Hello, World! Coap Client
A simple Hello, World! style example using Nabto Edge CoAP is available in our example repository. It demonstrates all necessary plumbing to get started with your own apps.
Building
Follow the build instructions and carefully note how to obtain the client SDK libraries for use with the example.
Running
Start a CoAP Nabto Edge embedded device application to invoke first.
Then invoke the compiled hello world client towards the device as follows. See the Nabto Edge Embedded SDK applications guide for information on how to obtain the necessary configuration data (product ID, device ID):
$ ./simple_coap_client -p pr-ah3lv7z9 -d de-8slb653x
Nabto Client SDK Version: 5.11.0
connecting to pr-ah3lv7z9.de-8slb653x
Connected to device with fingerprint: 37e50342551c1824a92fcd91b09ab76f
Received CoAP get response data: Hello world
TCP Tunnel Client
A simple example of using the Nabto Edge Tunnels client API is available in the example repository. A more advanced tunnel application with precompiled binaries can be found in the Nabto Edge Tunnel CLI repo. It comes with a detailed step-by-step guide.
The tunnel clients must be run towards a Nabto Edge Embedded SDK based TCP tunnel, such as TCP Tunnel Device supplied with the Nabto Edge Embedded SDK.