Changes between Version 1 and Version 2 of Internal/AttenuatorAPI


Ignore:
Timestamp:
01/23/17 19:32:18 (3 years ago)
Author:
jkol
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Internal/AttenuatorAPI

    v1 v2  
    44All valid calls will reply with formatted XML. The first line will be `<response status="OK">` for commands that execute correctly, or `<response status="ERROR">` if either the parameters passed are invalid of the call failed for some other reason (check /var/log/syslog on the relevant Pi for more information).
    55|| '''REST API Call''' || '''Description''' ||
    6 || /Attenuator/set?name=''<int>''&value=''<float>'' || Sets the requested attenuator to the desired dB value. ||
     6|| /Attenuator/set?name=''<int>''&value=''<float>'' || Sets the requested attenuator to the closest possible dB value.||
    77|| /Attenuator/zero_all || Set all attenuators to 0 dB. ||
    88|| /Attenuator/read?name=''<int>'' || Read the current dB setting of the requested attenuator. ||
    99|| /Attenuator/read_all || Read the current dB setting of all attenuators. ||
    1010
    11 '''IMPORTANT NOTE:''' The attenuator API will round the requested set attenuator value to the nearest possible value based on the attenuator it has (eg. 37.63 dB with 0.5 dB/step attenuator will be rounded to 37.5 dB)
     11'''IMPORTANT NOTE:''' The attenuator API will round the set request dB value to the nearest possible value based on the attenuator specs (eg. 37.63 dB with 0.5 dB/step attenuator will be rounded to 37.5 dB)
    1212
    1313'''Example XML responses:'''