profile_set_codec
Replace a device profile's payload codec by selecting runtime and providing a JavaScript script. Use NONE to disable codec processing, or JS with decodeUplink and encodeDownlink functions.
Instructions
Replace only the payload codec of a profile. For runtime JS, script is required and must define decodeUplink(input) and may define encodeDownlink(input); use runtime NONE to turn the codec off. Iterate here while watching uplinks with capture_read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | No | ||
| runtime | Yes | ||
| profile_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||