writing to lcd api

added writing the owner's name on the LCD,
fixing some bugs
This commit is contained in:
joran2738
2023-11-18 23:41:41 +01:00
parent 4d844c41d6
commit 68b29d444f
3 changed files with 28 additions and 17 deletions

View File

@@ -29,7 +29,6 @@
#include "llfs.h"
#include "lcd_api.h"
#include "UDP_broadcast.h"
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
@@ -128,13 +127,13 @@ int main(void)
llfs_init();
// Initialize the UDP broadcast service
if (udp_broadcast_init() != ERR_OK && udp_broadcast_connection_init() != ERR_OK){
if (udp_broadcast_init(270,255) != ERR_OK && udp_broadcast_connection_init() != ERR_OK){
LOG_WARN(TAG,"error initializing udp connection");
}
if (!udp_broadcast_set_owner_details("Joran", "Van Nieuwenhoven")){
if (!udp_broadcast_set_owner_details("0123456879012345678", "default")){
LOG_WARN(TAG,"error setting owner's details");
}
LOG_DEBUG(TAG,"%s",udp_broadcast_get_owner_details_reply());
/* USER CODE END 2 */
/* Infinite loop */