// import "github.com/Diarkis/diarkis/server"// import "github.com/Diarkis/diarkis/mesh"// import "github.com/Diarkis/diarkis/datacapsule"var myCommandID uint16=1024// Get all UDP server addressesudpServerAddresses := mesh.GetNodeAddressesByType(server.UDPType)iflen(udpServerAddresses) ==0 {// no UDP servers found....return}// choose one UDP server from the listudpServerAddress := udpServerAddresses[0]// create the data to senddata :=make(map[string]interface{})data["myName"] ="Jon"mySchedule := datacapsule.NewCapsule()appointments :=make([]map[string]string, 2)appointments[0] =map[string]{ "date": "01/01/2022", "title": "New Year Party" }appointments[1] =map[string]{ "date", "25/12/2022", "title": "Christmas Party" }mySchedule.SetAsArray("appointments", appointments)data["mySchedule"] = datacapsule.Pack(mySchedule)mesh.Send(myCommandID, udpServerAddress, data)