Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:bs2_runaction [2021/08/05 15:42] peter created |
en:bs2_runaction [2021/08/06 15:50] (current) kateyu [API] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// | ||
- | |||
~~NOTOC~~ | ~~NOTOC~~ | ||
[[device_api]] > [[BS2_RunAction]] | [[device_api]] > [[BS2_RunAction]] | ||
Line 9: | Line 7: | ||
[+ 2.8.1] Commands the device to take certain actions. \\ | [+ 2.8.1] Commands the device to take certain actions. \\ | ||
Using this API, you can control LED, buzzer, sound, relay and more. | Using this API, you can control LED, buzzer, sound, relay and more. | ||
- | ==== API ==== | + | ==== Declaration==== |
<code cpp> | <code cpp> | ||
#include "BS_API.h" | #include "BS_API.h" | ||
Line 22: | Line 20: | ||
* [In] ''//context//'' : Context | * [In] ''//context//'' : Context | ||
* [In] ''//deviceId//'' : Device Identifier | * [In] ''//deviceId//'' : Device Identifier | ||
- | * [In] ''//action//'' : Address where certain actions are defined | + | * [In] ''//action//'' : Structure address where certain actions are defined |
==== Return Values ==== | ==== Return Values ==== | ||
Return ''BS_SDK_SUCCESS'' when successful, and return an appropriate error code when an error occurs. | Return ''BS_SDK_SUCCESS'' when successful, and return an appropriate error code when an error occurs. | ||