1.0.5 • Published 3 years ago

osiota-app-gpio v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

osiota application gpio

Osiota is a software platform capable of running distributed IoT applications written in JavaScript to enable any kind of IoT tasks. See osiota.

Configuration: gpio

This application reads input states of GPIO pins.

Properties

NameTypeDescriptionRequired
pin(Pin number)numberNot GPIO number (See pin naming)yes
invert(Invert Input Value)booleane.g. for a pull down circuitno
map(Actions)object[]no

Additional Properties: not allowed Example

{
    "pin": 7,
    "invert": true,
    "map": [
        {
            "type": "press",
            "node": "/my-switch"
        },
        {
            "type": "longpress",
            "node": "/my-switch-long"
        }
    ]
}

map[]: Actions

Items: Action

Item Properties

NameTypeDescriptionRequired
type(Switch Type)stringEnum: "switch", "press", "longpress"yes
node(Node Name)stringno

Example

[
    {
        "type": "press",
        "node": "/my-switch"
    },
    {
        "type": "longpress",
        "node": "/my-switch-long"
    }
]

How to setup

Add a configuration object for this application, see osiota configuration:

{
    "name": "gpio",
    "config": CONFIG
}

License

Osiota and this application are released under the MIT license.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago