Download OpenAPI specification:
This document describes the outgoing requests of the PuKK Workspace. Using the response, you can control the LEDs of the PuKK
| action required | string Value: "poll" Type of action |
| mac required | string Example: mac=10:20:30:40:50:60 Mac address of the PuKK. |
{- "command": "set_leds",
- "led_values": {
- "color": {
- "brightness": 100,
- "red": 255,
- "green": 255,
- "blue": 255
}, - "duration_ms": 0
}
}| action | string Enum: "short_press" "double_press" "multiple_press" "long_press_3s" "long_press_5s" "long_press_15s" "nfc" Type of action. Multiple_press is 3 or more presses until the user stops pressing. |
| mac | string Example: mac=10:20:30:40:50:60 Mac address of the PuKK. |
Required when action=nfc, Empty otherwise
| dataType | string Enum: "Text" "JSON" "URI" "VCard" Data type of the values |
| nfcId | string NFC Identifier |
| nfcValue | string Value on the NFC |
object |
{- "dataType": "Text",
- "nfcId": "string",
- "nfcValue": "string",
- "nfcSpecs": {
- "cardType": "string",
- "sensRes": "string",
- "selRes": "string",
- "bitrate": "string",
- "afi": "string",
- "dsfid": "string",
- "ndefUpdated": "string"
}
}{- "command": "set_leds",
- "led_values": {
- "color": {
- "brightness": 100,
- "red": 255,
- "green": 255,
- "blue": 255
}, - "duration_ms": 0
}
}