Filter results by

ARTIK API

The ARTIK API is intended to speed application development on ARTIK 5, 7, and 10 hardware modules. This API has been developed in an object-oriented fashion, in order to provide consistency across the different languages and bindings supported.

Go to the ARTIK API pages now for complete details on the API calls. Refer to the Wireless IoT Networks articles for information on the APIs for the ARTIK 0 family.

ARTIK Board Setup Procedure

To add the API support package to your ARTIK module code, you'll need to point to the package repository and add a public key to allow connection to the repository. You'll then be able to install the package.

Use the terminal emulator connection to your ARTIK board to create the following files.

  1. Add a new repository. In the existing /etc/yum.repos.d/ directory, create a file named artik.repo and add the content shown.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[artik]
name=Artik $releasever - $basearch
failovermethod=priority
baseurL=http://repo.artik.cloud/artik/bin/pub/artik/linux/releases/$releasever/Everything/$basearch/os/
enabled=1
priority=50
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-artik
  
[artik-noarch]
name=Artik $releasever - noarch
failovermethod=priority
baseurL=http://repo.artik.cloud/artik/bin/pub/artik/linux/releases/$releasever/Everything/noarch/os/
enabled=1
priority=50
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-artik
  1. Add a corresponding public key. In the existing /etc/pki/rpm-gpg/ directory, create a file named RPM-GPG-KEY-artik and add the content shown.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
 
mI0EWAoJUwEEAMSpsqvDOz8ceSNrDHbuDlM3R7Gc+Md+eH/aXZYse0ZRC8D9ZSYO
CfgN983pJd5NZSGSEcK1epJ7oKmQ6k7Kb32ff/nVwIrbR8fXVUc6DiBeKIhVTO3U
th4jf+pXi4r83dWuKQ2uaKcjpmUHEhyUIIXwJuOS2GYfzYLs45yMVCDhABEBAAG0
QEFSVElLIEZlZG9yYSBQYWNrYWdlIFJlcG9zaXRvcnkgKFNhbXN1bmcgQVJUSUsp
IDxhcnRpZUBhcnRpay5pbz6IuAQTAQIAIgUCWAoJUwIbAwYLCQgHAwIGFQgCCQoL
BBYCAwECHgECF4AACgkQDK9lFg3UZUXobQQAil5UyDXxBrViiTQNavBAFj+BFXyR
txbq4LvIywOFCsvNood5pXXVXLx6NZhhJ+ApL98SHEdz9jwel128FiQv+TXduoVc
oNXv6ZyQ77so8YBc4IuxZht4wIG6GzNGDJNnOr12pUmMt66tfPngYeLX0pVei5dR
j4oWZJkuol8dYwy4jQRYCglTAQQAxEWajcCuuEIDkyG6HA0EosrWDjpHWqH9vXZk
JuUeKq+vA2acXYnelDMLhK7MBCF2tLey4I58QO9ga+/uyK7HNqZF9pXybdoeM89d
FMN8K71AsdkzEwd1/2yJiJKOzg10ESE99Q4QAM+okpWZRtgV59X2W97uXIGzIE30
mvDmSbEAEQEAAYifBBgBAgAJBQJYCglTAhsMAAoJEAyvZRYN1GVFN40EAIJom0ZY
FwJu6zWID35HH7Uq4tvrm4Jt/xg0VsUnmUQlP5BkZLCp+gUn33tKWJuP6vo+Ck5X
D/2sq0flj5mPF9WBE1TLc8Tw9DbFEMpWd1NboRlCAK/O4ote2bfaqYwCTj8QXEHW
Nb0z4J5LYa1ci8t3mEXnzMQMqlqUFOCfve5p
=m52w
-----END PGP PUBLIC KEY BLOCK-----
  1. Install the API package. The following command will install all the compiled binary tests as well as all the compiled API libraries. Doing so allows applications that were developed using the API to run on your platform.
    dnf repository-packages artik upgrade
    dnf install libartik-sdk-tests artiksee

Development PC Setup Procedure

From the development side, there are two approaches to installing and using the ARTIK API.

  • Install Eclipse Che. When you install Eclipse Che for ARTIK, the ARTIK API is automatically made available to your programming environment with no additional installations. Refer to the Eclipse Che getting started page.

  • Use your own environment. If you prefer a different development environment, you have to install each of the development libraries for the associated function. For example, to use your ARTIK board for your development environment, you would run the following commands to install the various packages needed.

    dnf install libartik-sdk-base-devel
    dnf install libartik-sdk-bluetooth-devel
    dnf install libartik-sdk-connectivity-devel
    dnf install libartik-sdk-lwm2m-devel
    dnf install libartik-sdk-media-devel
    dnf install libartik-sdk-sensor-devel
    dnf install libartik-sdk-systemio-devel
    dnf install libartik-sdk-wifi-devel
    dnf install libartik-sdk-zigbee-devel

Last updated on: