One of the frustrating things with the NETMF SDK’s is the fact that references get changed so when you find some code you want to check out and use, you find that it won’t build.
The SMTP file in codeshare is one example. It was originally built for 4.1 and so when I load it into 4.3 the ConvertBase64 function is highlighted as unknown. Doing a search on the net I can’t find this.
Do note that the netmf version is not compliant with RFC 4648, which matters if you are going to use it with anything other than another netmf system (for instance, when sending keys to Azure). Other systems will appear to randomly fail to convert the string you send.
To create an RFC 4648 compliant string, you need to change ‘!’ to ‘+’ and ‘*’ to ‘/’.
I think there may also be a global flag setting that will change the conversion under the covers.