-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working in parallel with WiFiClientSecure #60
Comments
Hi, this may possibly get marked as a won't fix as I believe the lobrary was really made for use with insecure clients. Why were you trying to use along a secure client. This library was initially based on the WifiSecure lib you are using. |
The use case is with devices, having two wireless interface, e.g., WiFi and GSM, such as the Liligo T-Call Modules (https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800). In my use case, the WiFi interface is the preferred one, with fallback to the GSM interface. The WifiSecure lib can successfully be used on the WiFi interface. Using SSL on the SIM800 module however, is not straightforward. Thats where this lib comes in and I would love to use it on top of TinyGSM (https://github.com/vshymanskyy/TinyGSM) for the GSM connection path. |
Having the same issue. Changing a few lines of code would fix it. Would be lovely to be able to use both libraries. |
@pontusmattiasdanielsson can you submit a PR for this? |
@RobertByrnes @pontusmattiasdanielsson adding a +1 here as our team has the same issue, we want to be able to fallback to WiFi if GSM is unavailable, but we need SSLClient to use GSM as our module SIM7600 doesn't support SSL natively. |
@live-alchemy Do you have any code you can share here such as a sketch or part of one to make it easier for me to take a look? |
@kymograph @live-alchemy @pontusmattiasdanielsson The latest version on PlatformIO / Arduino is 1.1.8 and should now support compilation with WifIClientSecure. Any further issues with this please open a new issue. |
@RobertByrnes wow that was fast! thanks I will try now with v1.1.8 |
@RobertByrnes apologies for the novice question, is there a way to update this library manually if the platformio registry does not have the update yet? I went into the libdeps dir but these aren't git repos and I'm sure there's an easier way to do this. |
@reusables-official no worries. Put in your platformio.ini file under the lib_deps section: digitaldragon/[email protected] https://docs.platformio.org/en/latest/projectconf/sections/env/options/library/lib_deps.html |
@RobertByrnes yes! that was actually the first thing I tried, but I get this error back on save:
I assume the issue isn't the last bit about system requirements, but maybe? |
@reusables-official sorry my bad! I tagged it as 1.1.8 but hadn't published yet. It is now published, and it should be there soon 😀 In the meantime you can add: https://github.com/Govorox/SSLClient.git#1.1.8 |
@reusables-official The other thing you can do is try 'pio system prune' When the cache clears my system picked up the new package and installed it with the correct version |
@RobertByrnes sweet! got the latest version. it seems that some of the errors previously generated are indeed resolved, but there is one last one lingering! I think it's related to this package but honestly it's hard for me to tell, but I am seeing effects of your change in that
|
@RobertByrnes I went into the source and changed the name of |
Yes please that would be helpful. That didn't come up in my env as it compiled. Please can you include a snippet of your #includes Cheers |
The lib is not working when used in parallel with the WiFiClientSecure lib. Both libs include ssl_client.h, but due to the changes in this lib, the function get_peer_fingerprint() cannot be found anymore, giving a compilation error.
Errors are probably depend on include order because of the two versions of ssl_client.h, so other errors might also lead to this issue.
The text was updated successfully, but these errors were encountered: