Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sending Android System Time Stamp to Arduino
#3
I have a solution for this task.
Pick up the "Text script or Json creator", fill in "Script" field the following Json: {"Day":#value1, "Hour":#value2, "Minutes":#value3}. In the given example the "Day" stands for the day of week. Now choose anĀ output variable on your Virtuino server. For testing that you should at least once in loop use that variable, for example print that on serial terminal.
Then you should chouse input variables by pressing "+" as much time, as you have input variable. The first input variable is the Android device sensor's V12-Day -of the week, next is the V9-Hour and last is V8-Minute. The Widget does not have its own refresh rate definition, so be careful to include the "seconds", which may overload the connection with server.
The following is the received Json on my terminal, sent to V[8] server side variable.
Code:
21:37:01.549 -> Received data: 1234!V08=%7B%22Day%22%3A0%2C+%22Hour%22%3A0%2C+%22Minute%22%3A37%7D$
21:37:01.549 -> %7B%22Day%22%3A0%2C+%22Hour%22%3A0%2C+%22Minute%22%3A37%7D
Reply


Messages In This Thread
RE: Sending Android System Time Stamp to Arduino - by Araqel - 08-17-2025, 05:55 PM
Bug report - by Araqel - 08-19-2025, 11:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)