TemporaryChangeBaudRate

Aug 30, 2015 at 12:31 AM
It should be mentioned somewhere in the documentation, that this method does work as designed. However, an attempt to re-deploy the source code without power cycling the Display will fail.

In order to re-deploy the same code, a power cycle is required to set the baud rate back to the default.
Coordinator
Sep 2, 2015 at 10:21 AM
In my case power cycling was not required. If you re-deploy code without Display power cycling the temporary baud rate change command will fail but after that other commands should succeed. Do you have other experiences?
Sep 5, 2015 at 5:20 PM
No, on my end it fails and the rest of the code also fails.
Coordinator
Sep 6, 2015 at 11:13 AM
Can you try this code:
            var port = NextionDisplay.TemporaryChangeBaudRate("COM2", 9600, 115200);
            var display = new NextionDisplay(port);
            display.GUI.Clear(Color.Black);
            display.GUI.WriteText("Test " + DateTime.Now.ToString(), 0, 0, 200, 50, 0, (int)Color.Green, (int)Color.Transparent, HorizontalAlignment.Left, VerticalAlignment.Center);

            Thread.Sleep(2000);
            Microsoft.SPOT.Hardware.PowerState.RebootDevice(true);
On my device it is working (date and time is refreshing) every two seconds.