In Arduino IDE There is a function
void(* resetFunc) (void) = 0;
Which Reset the the Uno through Software. it is working. Now I am trying to implement in B4R Through linline C....But unable to reset it. Please help.
void(* resetFunc) (void) = 0;
Which Reset the the Uno through Software. it is working. Now I am trying to implement in B4R Through linline C....But unable to reset it. Please help.
Reset through Inline C:
Sub Process_Globals
Public Ser1 As Serial
Public mystream As AsyncStreams
Public bc As ByteConverter
Public receivedata As Int
Dim count As Byte
End Sub
Private Sub AppStart
Ser1.Initialize(115200)
Log("AppStart")
RunNative("Reset",Null)
End Sub
#if C
void Reset (B4R::Object* o) {
//lower case variables
Serial.println("going to reset");
delay(2000);
void(* resetFunc) (void) = 0;
}
#End if