GitXplorerGitXplorer
t

esp-idf-aws

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
19cd5d05f421edb9c44fb123d3be2ae754c6c1e3

sperating out function so they can be used else where

tthisboyiscrazy committed 7 years ago
Verified
a587122a9e6bd7707a1c79e0904a1e67cb4b3973

Update LICENSE

tthisboyiscrazy committed 7 years ago
Verified
0dd315f6c8863ccfa131650ad3df2ded43e2a9c8

Create README.md

tthisboyiscrazy committed 7 years ago
Unverified
f2e6717918b89ece7d2264eff13874a217f38514

Init

tthisboyiscrazy committed 7 years ago
Verified
5c026833c57c992dabae376b725b9d2d31fc319d

Initial commit

tthisboyiscrazy committed 7 years ago

README

The README file for this repository.

AWS Compent for ESP-IDF

Current only support GET from S3 But I would like to add more.

example usage:

extern const uint8_t server_root_cert_pem_start[] asm("_binary_server_root_cert_pem_start");
extern const uint8_t server_root_cert_pem_end[]   asm("_binary_server_root_cert_pem_end");

char img[4000] = { NULL };

//Setup Structure
struct aws_request r = {
    .key_id = CONFIG_AWS_KEY_ID,
    .key_secret = CONFIG_AWS_SECRET,
    .region = "us-east-2",
    .host = WEB_SERVER,
    .path = FILE,
    .tls_cfg = {
        .cacert_pem_buf  = server_root_cert_pem_start,
        .cacert_pem_bytes = server_root_cert_pem_end - server_root_cert_pem_start,
    }
};

//Puts http body in img (upto sizeof(img)) returns number of bytes received
int received = aws_s3_get(&r, img, sizeof(img));
if(received < 0) {
    ESP_LOGE(TAG, "AWS S3 Error %d",received);    
}