Hi, has anyone already done an EndPoint http integration with Node Js, I have a question about importing the libraries, due to an error.
I’m also unsure whether the URL is correctly configured in the endPoint. because when I test the request it gives the error when recognizing the event.
[nodemon] restarting due to changes…
[nodemon] starting node .
Server running at http://localhost:8070/
Error handling request: TypeError: Cannot read properties of undefined (reading ‘UplinkEvent’)
Error handling request: TypeError: Cannot read properties of undefined (reading ‘UplinkEvent’)
url end point: http://localhost:8070/?event=up
importing libraries:
const http = require(‘http’);
const { parse } = require(‘querystring’);
//const { integration, google } = require(‘@chirpstack/chirpstack-api/api/device_grpc_pb’);
const { integration} = require(‘@chirpstack/chirpstack-api/integration/integration_pb’);
const { hex } = require(‘protobufjs’);