I am trying to use the ChirpStack-Simulator and it works great! The issue that I am having now is that I need it to generate HTTP Integrations when it creates the devices, however I am not sure of how to do that using GoLang and the libraries that were created. I have the following and if anyone can point me in the right direction I would appreciate it.
Code Sample:
func (s *simulation) setupHttpIntegrations() error {
log.Info("simulator: create integrations")
createIntResp, err := as.Integration().Create(context.Background(), &api.CreateHTTPIntegrationRequest{
Integration: &api.Integrations{
AckNotificationUrl: "https://localhost:8080/api/data/ack",
ErrorNotificationUrl: "https://localhost:8080/api/data/error",
JoinNotificationUrl: "https://localhost:8080/api/data/join",
LocationNotificationUrl: "https://localhost:8080/api/data/location",
StatusNotificationUrl: "https://localhost:8080/api/data/status",
TxAckNotificationUrl: "https://localhost:8080/api/data/txack",
UplinkDataUrl: "https://localhost:8080/api/data/uplink",
},
})
if err != nil {
return errors.Wrap(err, "create integrations error")
}
return nil }