For more details, please see the following.

[Plugin OTA](/reference/obnizos-for-esp32/plugin/ota)

The created plug-ins can be registered in the cloud as "obnizOS (plug-in OS) with plug-ins" and can be written from the cloud to the device via the Internet.

1. register to the cloud and generate a key
2. set the key in the plug-in program and build it
```c
obniz.setKey("1EfR9nLYGVOkWKP1nf9V8fKEPM194je4");
obniz.onEvent(onEvent);
obniz.start();
```
3. Register the built plug-in OS to the cloud again.
4. write to the device via OTA from device management



