Plugin

What is a plug-in?

A plug-in is an extension that allows you to do things that were not possible in obniz, such as offline processing and fast IO control, by writing a program.

There are following advantages by using plug-in functions.

  • You can make your program do a specific action when offline.
  • It can be operated without being affected by the network, such as when you want to control IO at high speed.
  • You can take advantage of the Arduino library.

You can use plug-ins by creating a program you want to run with Arduino IDE and inserting it into the device you want to run.

You can add your own functions to obnizOS by using plug-ins. You can also use OTA to install a plug-in to any device you want.

Relation between obnizOS and plug-in

The plug-in is the initiative and allows you to start and end obnizOS at any time.

However, if you don't start obnizOS, you can't use OTA, device management, IO control, etc. available in obniz.

When you start obnizOS, it creates a new task. By doing this, you will run obnizOS while the plug-in continues to run.

When obnizOS connects to the network or goes offline, an event is triggered and the plug-in can retrieve it. See the reference for details.

Articles