This commit is contained in:
joran2738
2023-11-13 15:09:21 +01:00
parent 984c573ae6
commit a3907c36d9
2 changed files with 55 additions and 86 deletions

View File

@@ -30,7 +30,7 @@
#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 30 // Define the maximum expected data size
#define UDP_QUESTION1 "Where are you?v1.0"
/**
@@ -43,7 +43,6 @@ typedef struct {
char name[20];
char surname[20];
uint8_t mac_address[6];
char reply[100];
}owner_details_t;
// The following functions are used for owner details (those that must be available in main)
@@ -51,7 +50,7 @@ uint8_t set_owner_details(owner_details_t*, char* , char*);
char* get_owner_details_name(owner_details_t*);
char* get_owner_details_surname(owner_details_t*);
char* get_owner_details_reply(owner_details_t*);
char* get_owner_details_reply();
// The following functions are used for UDP (those that must be available in main)
err_t init_UDP_server();