Update main.c

This commit is contained in:
joran2738
2023-11-13 18:19:56 +01:00
parent 58dea235a5
commit e03e757e01

View File

@@ -126,6 +126,14 @@ int main(void)
/* Initialize the filesystem */ /* Initialize the filesystem */
llfs_init(); llfs_init();
// Initialize the UDP broadcast service
owner_details_t owner;
udp_broadcast_init();
if(!udp_broadcast_set_owner_details(&owner, "Joran", "Van Nieuwenhoven")){
LOG_WARN(TAG,"error setting owner's details");
}
LOG_DEBUG(TAG,"%s",udp_broadcast_get_owner_details_reply(&owner));
/* USER CODE END 2 */ /* USER CODE END 2 */
/* Infinite loop */ /* Infinite loop */