I am having some issues integrating the PLUS B device with our backend. Our customer requires to integrate over HTTP with JSON payload as current plataform manage this protocolos, but I'm finding a strange behaviour when making some tests...
I am testing over telelogger, and after making some minor changes to adapt our backend I made it work (connectivity), but when I tried to integrate the telemetry it didn't work, while debugging I've tested with a dummy JSON content, which works correctly. The modem sets the body of the payload and sends the request.
Code: Select all
[AT REQUEST]: AT+SHBOD=25,100
[AT RESPONSE]: 1
[AT REQUEST]: {"a":1,"b":1,"c":1,"d":1}
[AT RESPONSE]: 1
[AT REQUEST]: AT+SHREQ="/request?deviceId=UCFLVA28",3
[AT RESPONSE]: 1
Code: Select all
10.244.0.1 - - [12/Aug/2023:16:23:42 +0000] "POST /request?deviceId=UCFLVA28 HTTP/1.1" 200 12 "-" "curl/7.47.0" 207 0.010 [lab-application-lab-8080] [] 10.244.0.76:8080 12 0.011 200 5e6e6785702e7f290a86d869e4e4683c
Code: Select all
----------------------
SENSOR REQUEST
date,request,assetConfig,configParams,scriptName,orgParams,files,services
inbox_http_enabled
headers,method,payload,sourceIPAddress,tenantId,parameters
POST
{"x-request-id":"5fa7258fb6a5691818485fb096b29658","content-length":"25","x-forwarded-proto":"http","x-forwarded-port":"80","accept":"*/*","x-forwarded-scheme":"http","x-scheme":"http","cache-control":"no-cache","user-agent":"curl/7.47.0"}
{"deviceId":"UCFLVA28"}
Payload: {"a":1,"b":1,"c":1,"d":1}
Note that it is the same dialog with the modem but with an additional key and increasing the body length and there is no error aparently
Code: Select all
[AT REQUEST]: AT+SHBOD=31,100
[AT RESPONSE]: 1
[AT REQUEST]: {"a":1,"b":1,"c":1,"d":1,"e":1}
[AT RESPONSE]: 1
[AT REQUEST]: AT+SHREQ="/request?deviceId=UCFLVA28",3
[AT RESPONSE]: 1
Code: Select all
10.244.0.1 - - [12/Aug/2023:16:35:57 +0000] "POST /request?deviceId=UCFLVA28 HTTP/1.1" 200 12 "-" "curl/7.47.0" 181 0.012 [lab-application-lab-8080] [] 10.244.0.76:8080 12 0.012 200 db1bb1cde932c34e766517ed07eb91b4
Code: Select all
16:40:10.913 [http-nio-8080-exec-5] INFO e.a.s.s.a.i.r.CustomScriptEngineRestController:157 - Payload request with 0 bytes
16:40:10.913 [http-nio-8080-exec-5] INFO e.a.s.s.a.i.r.CustomScriptEngineRestController:287 - String media type: text-plain-null
16:40:10.913 [http-nio-8080-exec-5] INFO e.a.s.s.a.i.r.CustomScriptEngineRestController:289 - text_plain content
----------------------
SENSOR REQUEST
date,request,assetConfig,configParams,scriptName,orgParams,files,services
inbox_http_enabled
headers,method,payload,sourceIPAddress,tenantId,parameters
POST
{"x-request-id":"56a8b18318e94c15686b7d008d00ffa4","content-length":"0","x-forwarded-proto":"http","x-forwarded-port":"80","accept":"*/*","x-forwarded-scheme":"http","x-scheme":"http","cache-control":"no-cache","user-agent":"curl/7.47.0"}
{"deviceId":"UCFLVA28"}
Payload:
Payload: ""
I've checked for additional settings of the modem in the documentation but I don't see any relevant...
Anybody has an idea of what can be the problem?
Best recargs