![]() |
API
For Arduino developers
|
Hardware Srial API. More...
#include "NexHardware.h"Go to the source code of this file.
Functions | |
| bool | recvRetNumber (uint32_t *number, uint32_t timeout) |
| Receive uint32_t data. More... | |
| uint16_t | recvRetString (char *buffer, uint16_t len, uint32_t timeout) |
| Receive string data. More... | |
| void | sendCommand (const char *cmd) |
| Send command to Nextion. More... | |
| bool | recvRetCommandFinished (uint32_t timeout) |
| Command is executed successfully. More... | |
| bool | nexInit (void) |
| Init Nextion's baudrate,page id. More... | |
| void | nexLoop (NexTouch **nex_listen_list) |
| Call mainEventLoop,watting for Nextion's touch event. More... | |
Hardware Srial API.
Definition in file NexHardware.cpp.
| bool recvRetCommandFinished | ( | uint32_t | timeout | ) |
Command is executed successfully.
| timeout | - set timeout time. |
| true | - success. |
| false | - failed. |
Definition at line 187 of file NexHardware.cpp.
| bool recvRetNumber | ( | uint32_t * | number, |
| uint32_t | timeout | ||
| ) |
Receive uint32_t data.
| number | - save uint32_t data. |
| timeout | - set timeout time. |
| true | - success. |
| false | - failed. |
Definition at line 45 of file NexHardware.cpp.
| uint16_t recvRetString | ( | char * | buffer, |
| uint16_t | len, | ||
| uint32_t | timeout | ||
| ) |
Receive string data.
| buffer | - save string data. |
| len | - string buffer length. |
| timeout | - set timeout time. |
Definition at line 97 of file NexHardware.cpp.
| void sendCommand | ( | const char * | cmd | ) |
Send command to Nextion.
| cmd | - the string of command. |
Definition at line 164 of file NexHardware.cpp.
1.8.7