Hello
I cannot run a Https request with my G120HDR by a wifi link or cellular radio link .
I have MF4.3 and GHI SDK 2014-R5
Initialy a Https request generate this error: “Exception System.NotSupportedException - CLR_E_NOT_SUPPORTED (1)”
I have updated the SSL Seed with MFDeploy.
@ ChristianJack - First I would try just a simple get request to say the home page of google or bing over SSL. If that works, can you try to either step into GetResponse (you’ll need the NETMF source) to see where it fails at or try to connect using plain NETMF sockets instead of the HTTP wrapper?
@ John I have the same problem with “https://www.google.com”.
The blocking is in the method “‘Microsoft.SPOT.Net.Security.SslStream.Authenticate’”
I have debug without the NETFM source code.
I want try to use socket but I see that the class Socket is not accessible.
It is because for 2 years I use the G120HDR as a Gadgeteer project.
I have create a new MF project (not gadgeteer) and I have translated my code to try HttpWebRequest with a MF project and eventually if I have the same problem to use Socket.
I have defined the socket S to connnect my WifiRS21 but I do not know how to define the socket “Blue” to connect my LEDmatrix.
I have search on the forum the good syntax and I have verified with the schematic. Is there my socket S definition correct ? and where is the schematic name of the “Blue socket” X12, X13 or X14 ?
I was getting the CLR_E_NOT_SUPPORTED (1) when I had my proxy set wrong.
HttpWebRequest.DefaultWebProxy =
new WebProxy("itgproxy.dns.microsoft.com", true);
It’s up to you whether this code needs to be added at all (home vs work network?) or has anything to do with your issue, but I mention it for consideration.
@ John - OK for the namespace System.Net.Sockets, but I want to try to make a MF project with my G120HDR and have you a response for my sockets definition ?
@ ChristianJack - The G120HDR is not a Gadgeteer mainboard and is not meant to be used with Gadgeteer. There is a community G120HDR mainboard project on the Code Share that you can look into, but it is not supported. I believe the socket type you want for the LED Matrix is XY.
@ John - I am confused you do not understand my question.
I always use G120HDR as a gadgeteer mainboard with MF4.2 and now with MF4.3 and the CodeShare MikeCormier template.
I use G120HDR with Ledmatrix and WifiRs21 or Cellular radio without problem (with MF4.3 Gadgeteer project) except SSL blocking in SslStream.
Now, I want “to go to the right way”. For this I have create a new MF project (not a Gadgeteer project) and I have translate all my code (change some references)
My question "How to define the connector “Blue” on the G120HDR to connect and manage LedMatrix. I have see the shematic of the mainboard but I don’t know the name of the connector “Blue” if it is X12, X13 or X14. I suppose it is X12 but I am not sure.
I want to define the pins of connector “Blue” for a socket “X,Y” but I don’t know how this connector is wire and how to define I2C for the DaisyLink ?
I have found some example but it is for MF4.2 and for an old syntax.
How replace old syntax “socket.NativeI2CWriteRead = nativeI2C” with “socket.I2CBusIndirector = ???”. Is there a sample somewhere ?
It is OK for the “SPI” connector and WifiRs21. My wifi module runs on MF project.
Based on the code you posted it looks like you are trying to define Gadgeteer sockets inside NETMF. That can lead to hard to track down issues if you don’t use the entire Gadgeteer framework, which the G120HDR is not designed for.