Hi,
Does the G80 support GHI.Processor.Configuration class. I seem to get the right responses from the WriteEntry function but when I try and read this entry I get zero bytes returned. The getEntrySize also returns zero bytes. I do receive though a 16k from Totalsize function.
I have tried the exact same code using the G120E and this works fine. The development is in VB
Hi John,
I have appended the code from my application. If you need more or a test application then let me know. As I said this code works with the G120E so all I have changed is the gadgeteer device I am using. I assume that the G80 does work and is tested with the Configuration class.
Public Property DeviceIP As String
Get
Dim bBuff As Byte()
ReDim bBuff(20)
Dim strRead As String
If GHI.Processor.Configuration.GetEntrySize("DevIP") > 0 Then
bBuff = GHI.Processor.Configuration.ReadEntry("DevIP")
' GHI.Processor.Configuration.ReadEntry("DevIP", bBuff)
Return System.Text.UTF8Encoding.UTF8.GetChars(bBuff)
Else
Return String.Empty
End If
End Get
Set(value As String)
Dim bBuff() As Byte
bBuff = System.Text.Encoding.UTF8.GetBytes(value)
Dim bWrite As Boolean = GHI.Processor.Configuration.WriteEntry("1DevIP", bBuff)
Debug.Print("Bwrite: " & bWrite.ToString)
End Set
End Property
Maybe you’re missing telling us what your problem is - given you’re not using a G80 I’d suggest starting your own thread and post a code example of what you’re trying and what errors you get