This repository contains example programs to be built against the ARTIK SDK available on Samsung ARTIK boards (www.artik.io). These programs must be built natively on the ARTIK board, after making sure the ARTIK SDK development packages are installed (follow instructions).
This example reads a converted analog input every second and display the result in the console.
This example scans for the surrounding Bluetooth devices, display them, then try to connect to the device whose address is passed as a parameter.
This test advertises some sample LE services for the surrounding devices to detect.
This program starts a pairing agent to enable the user to authorize devices trying to pair with the device.
This program connects to a remote device exposing the AVRCP profile (e.g. smartphone), and exposes some commands to let the user control audio/video playback on the remote device.
This program connects to a remote device exposing the FTP server profile, and exposes some commands to let the user browse and exchange files with the remote device.
This program connects exposed and advertises a GATT server profile with a battery level service. It supports notification and will send the battery level to registered clients every second.
This program connects to a remote device exposing the GATT server profile and the battery level service, then tries to read and write the battery level value. It is meant to be tested against the artik_bluetooth_test_gatt_server.c program.
This program connects to a remote device exposing the GATT server profile and the battery level service, then tries to read the service properties and the battery level value. It also registers notification from the battery level service, and displays its value whenever a notification is received. It is meant to be tested against the artik_bluetooth_test_gatt_server.c program.
This program starts a PAN server on the target with proper network configuration, and allows remote PANU devices to join the network.
This program scans for bluetooth devices, then allows connecting to a PAN server as a PANU device. It is meant to be tested against artik_bluetooth_test_nap.c
This program starts a SPP server, pending on SPP clients to connect. It also displays any data received from the clients.
This program starts a SPP client and tries to connect to a remote SPP server. It then sends any data input on the keyboard over the SPP channel.
This program uses configured ARTIK Cloud credentials to issue requests to the cloud over commonly used REST APIs.
This program changes the color of a RGB LED connected to the ARTIK board sequentially. It also prints out events received by pressing a button connected to the ARTIK board using a GPIO.
This program issues some POST and GET requests to the HTTP test service http://httpbin.org
This programs tries to read and write registers on the CW2015 battery charger chip over I2C.
This programs connects to ARTIK Cloud's LWM2M server and exposes some objects. It then shows a console allowing the user to read or write some the LWM2M's objects properties.
This program plays a sound file specified by the user as a parameter.
This programs connects to ARTIK Cloud through MQTT and sends a test message to the cloud. Upon receiving an action from the cloud, it will display the action's data then disconnect from the server.
This program displays the external public IP of the device, checks the online status of the board, then executes a manual disconnection/reconnection of the network interface to observe proper notification of the online status change.
This program will output a PWM signal on one of the ARTIK board's PWM output for a duration of 3 seconds. If a buzzer is connected to this output, a sound should be heard.
This programs calls the Secure Element related APIs to display the builtin certificate, its associated serial number, and generate true random bytes.
This program lists all the sensors available on the board, then display their measured data every 2 seconds until the user hits Ctrl+C.
This loopback test opens a serial port on the board, sends some data over it then compare with the received bytes. This test requires the TX and RX pins of the serial port to be physically looped on the board using a wire.
This loopback test sends some data over the SPI bus then compare with the received bytes. This test requires the MOSI and MISO pins of the SPI bus to be physically looped on the board using a wire.
This program displays the current time, sets two alarms to be triggered in the next seconds, then check that the alarms are properly fired. It also tests time synchronization with a NTP server.
This program opens a websocket to ARTIK Cloud, sends a test message to the cloud every second and display any actions received from the cloud. The program exits automatically after 10 seconds.
This program scans the surrounding Wi-Fi access points and tries to connect to a preconfigured hotspot.
This programs exposes a command-line from where it is possible to expose ZigBee services, join or form a network, detect remote devices, then trigger actions on remote ZigBee devices.