AWS IoT MQTT Signature V4

· 컴포넌트

sgcWebSockets 4.4.3부터 Amazon AWS IoT 클라이언트가 Signature V4 인증을 지원해요. 즉, AWS MQTT 서버에 인증하기 위해 인증서를 사용할 필요가 없어요.

Signature V4는 WebSocket을 통한 MQTT와 포트 443에 사용할 수 있어요.

설정

First you must create a new user in your AWS console and assign privileges for IoT devices. If the process ends successfully you will get an Access and Secret Key, save this because you will need later.

In TsgcIoTAmazon_MQTT_Client there is a new property called SignatureV4, you must enable it and set the keys provided by AWS and the region.

oIoT := TsgcIoTAmazon_MQTT_Client.Create(nil);
oIoT.SignatureV4.Enabled := True;
oIoT.SignatureV4.Region := 'us-east-1';
oIoT.SignatureV4.AccesKey := 'your access key here';
oIoT.SignatureV4.SecretKey := 'your secret key here';
oIoT.Host := 'amazon end point here'
oIoT.Port := 443;
oIoT.Active := True; 

Delphi Amazon AWS IoT Client Component

Amazon AWS IoT MQTT 클라이언트 컴포넌트: 데모 다운로드, 문서 확인 등. https://www.esegece.com/products/websockets/iot/aws-iot