How to config AP radio with OpenAPI
Hello,
I'm having a hard time trying to configure an AP radio using Omada OpenAPI.
No matter how I send my request, I've got a success reply but I see that requested changes are ineffective.
Alternatively, when using Omada controller's GUI, changes on radio settings are immediate.
I'm using a Python program at the moment and I'm planning to use Ansible later on.
The core of my program is
radio_settings = {'wp2g': {
'radioEnable': True,
'channelWidth': 20,
'channel': '5',
'txPower': '18',
'txPowerLevel': '3',
'channelLimitEnable': False,
#'freq': 2462,
'wirelessMode': -2},
'wp5g': {
'radioEnable': False}}
response = session.patch(URL6, headers=headers6, data=json.dumps(radio_settings), verify=False)
I've tried so many combinations of values in radio_settings dict (with or without quotes arround integer values, with txPower or txPowerLevel alone or with both , ...) I'm wondering if my method is correct.
My method is to focus first on a simple setting, then include a second one and so one.
The first parameter I tried to change is txPower in 2.4GHz band.
For the EAP 610 I'm testing with, txPower mapping is 9dB for Low level, 14 for Medium and 20 for High.
Do you have any working example, of any kind ?
Suggestion ?
Best regards