Hi,
I am using this code
http://netduino2seedgsm.codeplex.com/
and this hardware
http://www.seeedstud...l?cPath=132_134
Managed to send sms ok however reading all SMS have been no joy.
Just wondering y whthe visual studio output produces funny characters: eg AÕi5GªA,j etc etc even thought the code is converted byte[] from utf8 string.
private static string GetUTF8StringFrombytes(byte[] byteVal)
{
byte[] btOne = new byte[1];
StringBuilder sb = new StringBuilder("");
char uniChar;
for (int i = 0; i < byteVal.Length; i++)
{
btOne[0] = byteVal[i];
if (btOne[0] > 127)
{
uniChar = Convert.ToChar(btOne[0]);
sb.Append(uniChar);
Debug.Print(uniChar.ToString());
}
else
{
sb.Append(new string(Encoding.UTF8.GetChars(btOne)));
Debug.Print(new string(Encoding.UTF8.GetChars(btOne)));
}
}
return sb.ToString();
}
}