Wifi connection has been fixed and several other issues.

On a side note, I am not sure the socket created for the services are ended and destroyed properly.
There are no SDMMD_AMDeviceStopService or SDMMD_AMDServiceConnectionDestroy.
A review aimed at memory management issue should be done because I suspect there are more than the few I have fixed.

I have totally disabled the SDMMD__ssl_verify_callback verfification callback by returning true because the code was insane.

Anyway, it's a great idea !