So I'm trying to use a bluetooth module (HC-06) to read data sent to my Netduino board from my cell phone. However, I cant get the bytes converted into text so I can compare the characters I send and thus turn them into conditional statements. From what I've seen I need to use the following line of code in C# to change it from a byte array to a string, however I cannot find a definition for class in my scope!! Here is the line:
Encoding.ASCII.GetString();
And here is the error I'm getting:
'System.Text.Encoding' does not contain definition for 'ASCII'
I'm using the .Net Micro Framework version 4.1 with the Visual Studio Express 2012
IDE. I'm using the original Netduino
, Netduino 1
with the 4.1 Framework
.