In this example you’ll learn how to make system calls from Arduino* sketches.

System calls are helpful to run commands like you would from a command prompt. You can use system calls to run scripts, configure the system, copy files, etc. It is important to note that when running a command from an Arduino sketch, the command is run as the root user.

What you’ll learn

  • How to use Linux* system calls in sketches

Gather your materials

You’ll need the following to complete this tutorial:

This code sample continues on GitHub*.

Для получения подробной информации о возможностях оптимизации компилятора обратитесь к нашему Уведомлению об оптимизации.