Http post from my AMB82 MINI to a Shelly Plus Plug S

I have tried in all possible way to send a Http post from my AMB82 MINI to a Shelly Plus Plug S to make it switch power on and off using direct Wifi so internet or network hardware is not needed. The string need to be sent is http://192.168.8.51/relay/0?turn=toggle
I have tried all libraries and also asking Blackbox ai, Gemini, Chat GPT for code examples without luck, they all say that The AMB82 Mini don’t support this.
So now is my question if the AMB82 MINI has the ability to post this string or do i need to add an external wifi module that have some Post library functions.
Thank’s in advance.

Hi @Johnny_Carlsson,

Can I clarify on your architecture:
AMB82 Mini - Client
Shelly Plus Plug S - Server

AMB82 Mini send a post request with a string “http://192.168.8.51/relay/0?turn=toggle” to the Shelly Plus Plug S. What is the IP address of your server?

Our WiFiClient is able to do post requests.

Thank you.

Thank’s for the quick reply
I choosed to try the Shelly Plus Plug S as a switchable powerrelay since it has soooo many connectivity ways and the most important for my future projects is that is has the open Accesspoint functionality which means it has it own network availible from factory with its predifined SSID and a fixed default IP-adress 192.168.33.1
This means that it would be so simple to set up the AMB82 Mini to the Shelly plug without any other network hardware needed or internet conectivity.
So for me to have this work perfect i only need the AMB82 Mini sending the http postdata http://192.168.33.1/relay/0?turn=toggle every time for example a face is detected by the AMB82 Mini camera and the powerswitch will turn the power on or off
But i can’t find any Library that works with Wifi post on the AMB82 Mini.
Hope that this clarify what i want to do.

Hi @Johnny_Carlsson,

We have several HTTP post requests example.
https://www.amebaiot.com/en/amebapro2-arduino-http-post-mp4/

You may refer to the code of this example to write the post request. You have 2 options, one is using WiFiClient to do the post request or HttpClient to do the post request.

Thank you.