Same code not working on a device, TLS+SoftAP and webserver

I’m developing an app with the photon which needs to use SoftAP + WebServer + TLS.
Together with hiro the developer of TlsTcpClient library i’m trying to figure out why i can’t use tls in conjunction with webserver and soft ap library.

To those who are willing to help me here’s the issue link

If you see his last minimal snippet on his device seems to work fine, while on mine it goes into blinking red led mode.

can you guys help me out?