public string ProgramSecurityRegisterUserFieldData(string userFieldString)
{
byte[] utf8Bytes = System.Text.Encoding.UTF8.GetBytes(userFieldString);
byte[] finalBytes = new byte[UserFieldLength];
if (utf8Bytes.Length > UserFieldLength)
{
throw new ArduinoConnectionException(String.Format("User field length cannot exceed {0:D} bytes", UserFieldLength));
}
Array.Copy(utf8Bytes, finalBytes, utf8Bytes.Length);
System.Console.Write(" ");
HexDump(finalBytes, 0, finalBytes.Length);
return TransmitBufferAndAwaitResponse(Commands.ProgramSecurityRegister, finalBytes, 0, finalBytes.Length);
}