writing to lcd api
added writing the owner's name on the LCD, fixing some bugs
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
#include "log.h"
|
||||
#include "udp.h"
|
||||
|
||||
#include "lcd_api.h"
|
||||
|
||||
// Defines used by owner details error handler
|
||||
#define SOD_NAME "set_owner_details_name"
|
||||
#define GOD_NAME "get_owner_details_name"
|
||||
@@ -31,9 +33,8 @@
|
||||
#define F_REPLY "format_reply"
|
||||
|
||||
// Defines used by UDP callback
|
||||
#define MAX_DATA_SIZE 50 // Define the maximum expected data size
|
||||
#define MAX_DATA_SIZE 63 // Define the maximum expected data size
|
||||
#define UDP_QUESTION1 "Where are you?v1.0" // Expected request from UDP client
|
||||
#define UDP_QUESTION2 "Change details to:" // Expected request from UDP client
|
||||
|
||||
/**
|
||||
* @struct owner_details_t
|
||||
@@ -45,7 +46,7 @@ typedef struct {
|
||||
char name[20];
|
||||
char surname[20];
|
||||
uint8_t mac_address[6];
|
||||
char reply[100];
|
||||
char reply[120];
|
||||
}owner_details_t;
|
||||
|
||||
// The following functions are used for owner details (those that must be available in main)
|
||||
@@ -94,12 +95,14 @@ char* udp_broadcast_get_owner_details_reply();
|
||||
* @fn err_t udp_broadcast_init()
|
||||
* @brief udp_broadcast_init() initializes the owner's variables and calls upon @see udp_broadcast_connection_init()
|
||||
*
|
||||
* @param x_pos : uint16_t that sets the x coordinate the owner's name will be written on the LCD
|
||||
* @param y_pos : uint16_t that sets the y coordinate the owner's name will be written on the LCD
|
||||
* @return lwIP error code.
|
||||
* - ERR_OK. Successful. No error occurred.
|
||||
* - ERR_USE. The specified ipaddr and port are already bound to by another UDP PCB.
|
||||
*/
|
||||
|
||||
err_t udp_broadcast_init();
|
||||
err_t udp_broadcast_init(uint16_t x_pos, uint16_t y_pos);
|
||||
|
||||
// The following functions are used for UDP (those that must be available in main)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user