I have the SQL statement SELECT * FROM 'test/payload' set in my AWS IoT rule.
MQTT Publish should be up. subject: test/payload, payload: {"data1:":"test1","data2":"test2","data3":"test3"}
Set the HTTPS endpoint action in your AWS IoT rule.
HTTPS endpoint: https://test.com/test/endpoint
Header Key: X-Authorization-Client-Id / Header Value: test-auth-1
Header Key: X-Authorization-Client-Secret / Header Value: nsqlamsdmqwlrkn
Header Key: Content-Type / Header Value: application/json
The server builds the https://test.com/test/endpoint API.
@GetMapping("/endpoint")
@PreAuthorize("hasAnyRole('Administrator', 'Test Device')")
public void get_endpoint(@RequestBody string body){
log.info("get_endpoint : {}", body);
}
@PostMapping("/endpoint")
@PreAuthorize("hasAnyRole('Administrator', 'Test Device')")
public void get_endpoint(@RequestBody string body){
log.info("post_endpoint : {}", body);
}
MQTT messages must be posted. It is not possible to call the normal frequency of AWS IoT rules, where the most frequent HTTPS endpoint is requested.
- What did I set wrongly with the wrong settings? I call https://test.com/test/endpoint API and it works fine.
- How uniquely can I check logs for HTTPS End Point calls?
please answer about my question. thank you