SEND API-Commands Via WIFI

Hello dear community.
in the Video from the following link:

at 7min&30seconds it gets explained how you can send API-Commands from a computer
to controll WLED via wifi. Usually the syncing-option from WLED is verry limited as
all WLED-ESP32-units will play all the same presets etc.
Using this API-Method, we are able to precisely chose what happens on which board etc.
But now i need a arduinocode to use this method without a computer or mobile as i want to use it for a walkingact-performance.
Maybe someone has coded a arduino-code for this , or is able to code it ?
It is really a simple kind of code. It just needs to load a kind of wifi-library to get a connection to the other boards and then it will need to check if buttons or analog-buttons are pressed or turend. Then it needs to have the if-then-else state where the API-commands can be inserted.
Has maybe someone allready solved this ?
Thx 4 help & kind regards !
Tonda

You can connect (up to 4) secondary WLED devices to a master (or primary) using AP mode.
Then you can use sync.

You can also create playlist and trigger those using buttons.

If you want to program complex series of effects then you will need to come up with custom code that will run on external device (possibly providing AP for other ESPs).

thx,…
where do i find infos how to use this AP-Mode ?
and will i be able to send API-Commands to these 4 secondary WLED-devices using this method ?

WLED defaults to AP mode unless you connect it to existing WiFi.
Check KB.

Ok but i think this does not work with API-Commands this only works for standart-sync of preset, color etc . But if i for example want every ESP32 to play its own first preset then this is not possible this way. Also it is not possible to activate a relay via wifi this way etc.

It is.
JSON API is available at all times on any interface.

yes but as i mentioned allready when i opened the topic , i want to “SEND” API-commands via WIFI,
But when you use the standart sync-function and then trigger a preset which includes a API-command, then this API-Command will not be triggered on the other synced devices. Or am i missing something ?

You didn’t read (or understand) my answer above.

WLED will receive JSON API call on almost any interface. How you will send it depend on you and your sending device. So, if you want to control multiple ESPs with WLED from a single device, then connect all WLED devices and your controlling device to the same SSID (wifi). You can then control each and every WLED device from your controller.

If you do not want to have a controlling device then your best options are Sync or DDP virtual LEDs. In such case one of the WLED devices (a master) needs to be in AP mode and others (up to 4) will need to connect to its SSID.