Now I have updated to Arduino 2.3.4 and B4R 4.0 (I dont know if this is the problem, because I have been away from B4R for some time)
When I try to use ObjectCopy , that was part of the solution , I get a 'Guru Meditation Error: Core 1 panic'ed (LoadStoreError). Exception was unhandled.'
I can only copy array to array, not string to string.
When I try to use ObjectCopy , that was part of the solution , I get a 'Guru Meditation Error: Core 1 panic'ed (LoadStoreError). Exception was unhandled.'
I can only copy array to array, not string to string.
Sub Process_Globals
Public Serial1 As Serial
Private bc As ByteConverter
Private GlobalString As String = "000000000000000000000000" 'must be long enough to hold the string
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Dim DynamicString As String = bc.StringFromBytes("m21.cloudmqtt.com".GetBytes)
bc.ObjectCopy(DynamicString, GlobalString, DynamicString.Length + 1)
'Now you can use GlobalString
End Sub