-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OTA library and PAL #1412
Merged
Merged
Add OTA library and PAL #1412
Changes from 171 commits
Commits
Show all changes
172 commits
Select commit
Hold shift + click to select a range
6b239a4
Add OTA from AFR 202007.00 release
ed8541f
Fix OTA CMake file, add jsmn and tinycbor
f34bbc7
Delete JSMN files before submodule
yanjos-dev 62ed0e8
Submodule JSMN on master
yanjos-dev 69f6698
Update JSMN to v1.1.0
yanjos-dev 7e27a46
Merge pull request #31 from yanjos-dev/feature/submodule_jsmn
db89020
Delete tinycbor before submodule
yanjos-dev 21bfef7
Submodule TinyCBOR to master
yanjos-dev e1c6093
Update .gitmodule with the version of TinyCBOR
yanjos-dev 938985a
Merge pull request #30 from aws/feature/submodule_tinycbor
de0b22e
OTA Agent Posix : Use POSIX thread instead of FreeRTOS task
pvyawaha 597e9d7
OTA Agent POSIX: Use POSIX semaphore instead of FreeRTOS semaphore
pvyawaha 410c301
Merge pull request #32 from pvyawaha/ota
pvyawaha ef1d92d
Merge remote-tracking branch 'origin/development' into HEAD
88eb590
OTA linux pal
46ca975
Add OTA demo
860edb0
Update OTA library to use new MQTT library
78a0e2c
OTA LTS Dev: Update include files in OTA Agent File
pvyawaha ec61639
OTA LTS Dev: Update OTA Agent context initialization
pvyawaha d5ebc99
OTA LTS Dev: Self-test timer functions to use timer interface
pvyawaha ecd0ab4
OTA LTS Dev: Request timer functions implementation to use timers pas…
pvyawaha 7ef33d0
OTA LTS Dev: use assert instead of configassert in OTA Agent
pvyawaha 7c86f77
OTA LTS Dev: Update buffer get and free functions by removing protection
pvyawaha d4a13c3
OTA LTS Dev: Add OS interface context to OTA Agent Init functions
pvyawaha f805ed0
OTA LTS Dev: Add OTA OS implementation file
pvyawaha 4fef576
OTA LTS Dev: OTA MQTT demo update
pvyawaha 0d54f6d
OTA LTS Dev: OTA Agent changes for C-SDK
pvyawaha 1058060
OTA LTS Dev: OTA MQTT component changes for C-SDK
pvyawaha 888540a
OTA Dev LTS: OTA OS interface for linux
pvyawaha 6a6b5e7
Add mbedtls
c5a9d16
Remove mock
3958ae8
tmp fix for OTA
25dd57c
Remove OTA library
96dc951
Add OTA as an submodule
bb55954
Update OTA config with minimum request blocks
pvyawaha aad7eaa
Remove ota_os_interface.h from platform folder
f4c8fe7
Remove stdbool.h from ota_os_posix.h
5b9f76f
Update OTA naming convention
5f25fdb
Update OTA submodule
d446ab8
Merge latest master into OTA
b75d20a
Update OTA demo cmake file
c95b3e6
Fix warnings
bff635b
Update OTA submodule
2057780
Remove tinycbor from 3rdparty dir
b333a2d
Update OTA submodule and demo CMake file
7be91cc
OTA MQTT demo main and startota functions
pvyawaha d58871a
MQTT and OS interface in startotademo
pvyawaha 81e6972
OTA MQTT interface publish and subscribe implementation
pvyawaha 243ff2f
OTA demo MQTT interface cleanup
pvyawaha e83b4a0
Fix OTA demo due to folder structure update
29e316f
Remove hard coded cert from OTA demo
70b0f3d
Use OTA error codes for OTA MQTT interface
pvyawaha 975b457
Add sending start event from the OTA demo
pvyawaha 988d91a
Implement MQTT unscubscribe function for OTA MQTT
pvyawaha 2631d72
Update OTA submodule and remove jsmn, mbedtls
1045dba
Update OTA submodule
573dae0
Update .gitmodules URL and ota target commit
yanjos-dev bcafa89
Merge pull request #34 from yanjos-dev/ota
yanjos-dev f9960d8
Update OTA submodule
235fcdb
Update OTA submodule and remove iot_appversion32.h
7ee8089
Update naming convention in OTA demo and OTA submodule
b9b6de9
Add platform state update in OTA pal for linux
pvyawaha 390fa9d
Update OTA demo loop for receivng notification
pvyawaha f7ea106
Update OTA submodule
b6378c8
Update OTA submodule
a6256d0
Add sleep in the OTA demo loop for all conditions
pvyawaha 3a19433
Change to use https link for ota submodule
xuelix c969a85
Merge pull request #35 from aws/xueli/ota-e2e
xuelix 0789751
Add payload size to callback log messages
pvyawaha 964ad14
Merge branch 'ota' of github.com:aws/aws-iot-device-sdk-embedded-C-st…
pvyawaha 0ae5af1
Remove OTA OS Posix implementation from Paltforms
pvyawaha 040a10b
OTA demo directory change
divekarshubham 32814d6
fixing merge conflicts with staging/ota
divekarshubham b693798
renaming demos
divekarshubham f94ec83
Merge pull request #36 from divekarshubham/dev
pvyawaha e23e93f
Refactor MQTT initialization and connection functions
pvyawaha d85529f
OTA over HTTP demo use local mqtt context
pvyawaha 02f6a2d
Add http interface to OTA_AgentInit
pvyawaha fdff7fc
Add http utils functions
pvyawaha c0bedaf
Update HTTP utils functions
pvyawaha f84e8fd
OTA over HTTP cmake update for HTTP sources
pvyawaha 25dde12
Implement OTA http request function
pvyawaha 5010550
Merge pull request #37 from pvyawaha/ota
pvyawaha 871b031
Implement http deinit function
pvyawaha e418137
Merge pull request #38 from pvyawaha/ota
pvyawaha f02e925
Add HTTP port to OTA HTTP demo config
pvyawaha 6e1c5b1
Merge pull request #39 from pvyawaha/ota
pvyawaha 19a448d
Update OTA submodule
c93dd4f
Merge remote-tracking branch 'origin/master' into ota
c99b394
Fix OTA platform cmake file
984332d
Remove aws_ota_agent_config.h
pvyawaha 17ee374
Add ota_config.h for MQTT & HTTP demos
pvyawaha 631712a
Merge pull request #40 from pvyawaha/ota
pvyawaha 06dd0c4
change OTA logging to csdk logging in demos
pvyawaha 9ddb878
Change OTA logging to Csdk on Linux OTA pal
pvyawaha e6a0d93
Merge pull request #41 from pvyawaha/ota
pvyawaha 883c032
Update OTA demo config files and OTA submodule
yanjos-dev 0e9fc60
Merge pull request #42 from yanjos-dev/ota
yanjos-dev d9c1d68
Use application buffers in OTA MQTT demo
pvyawaha 94971e1
Uncrustify demo
pvyawaha 22628e2
use application memory in OTA HTTP
pvyawaha 707de87
remove ota pal file temporarily
xuelix 7230cf5
Adding OTA Linux Pal file
xuelix 39e935f
Update with new PAL interface
xuelix 4f790d7
Update after PR review
xuelix 0aac2c9
Update OTA submodule
bb714b5
Refactor and cleanup OTA MQTT demo
pvyawaha 64d2bc0
Merge pull request #45 from xuelix/xueli/pal-review
divekarshubham 7cb7f5b
Format aws_ota_pal.c
yanjos-dev 4412f1e
Update log strings in aws_ota_pal.c
yanjos-dev c0a7370
Merge pull request #46 from yanjos-dev/ota
yanjos-dev 2ae67eb
Fix typos in aws_ota_pal.c (#47)
yanjos-dev 749c978
Fix space formatting in aws_ota_mqtt.c (#48)
yanjos-dev 10740cb
Update OTA submodule
05021f7
Added OTA Pal unit tests (#50)
xuelix f7e23de
Added more ota pal unittest coverage
xuelix 8a4dada
Added more ota pal unittest coverage (#51)
xuelix d07fb3f
Fix file context check in ota linux pal
pvyawaha 22e7ad8
Update OTA submodule
2c722ee
Formatting changes (#52)
xuelix 1f0a052
formatting update (#53)
xuelix a410c74
Update OTA submodule
1c78b20
Change OTA demo config and remove pal context checks
pvyawaha 13d2f70
Update OTA submodule
ed5efe0
Update OTA submodule
2f677b2
Update coreHTTP submodule
divekarshubham 2f84c1b
Merge pull request #54 from divekarshubham/update/http
pvyawaha c494203
Fix OTA HTTP demo
pvyawaha ba1e303
Update Thing Name to 128
pvyawaha baec3ac
Update ota_config.h
pvyawaha 8951bd6
Build and CI checks fixed
divekarshubham 38238f3
Merge pull request #55 from divekarshubham/fix/ci-checks
pvyawaha 85a34db
Fixing the CMakeLists.txt
xuelix e9fbcfb
Coverity MISRA warning fix
xuelix 0e277fd
Fix spell check errors
xuelix 0bb6f3e
Fix uncrustify warning
xuelix 9bc1ee7
changes from review
xuelix 411f623
changes from review
xuelix f19b80f
File, folder name changes.
xuelix b0b6844
formatting and spell check fix
xuelix 266dd75
fix spell check
xuelix b86119e
Update OTA submodule, demo, and posix pal
1429e4e
Update HTTP submodule
fa07df7
Merge remote-tracking branch 'origin/main' into ota
5aa17c6
Clean up and remove duplicates in demo/lexicon.txt
136c58d
Fix OTA demo after merge with c-sdk main
7d81451
Temporarily remove ota demos
20acb99
Revert a cmake change
cadb5c6
Fix some compiler warnings in ota pal posix
9b0fb3b
Update OTA submodule
6d00a8b
Update error codes in OTA pal and unit tests
d18f0b2
Add realpath to the file name. (#57)
xuelix 6e9c553
Update OTA submodule
b31d51d
Fix unused variable warning
7acd1d2
Fix ota pal unit tests
7984ea8
Remove the private key for ota unit tests
cb2a7ec
Remove ota pal temporarily from cmake
6d8c5c2
Fix spell check
364f008
Rename ota submodule
cf842a5
Reorder and add declarations for static functions in ota pal
c36f71d
Remove pc-lint comments
eafab47
Fix version comments and remove redundant comments
582ee38
Remove a todo in ota pal
6d209ec
Update version number, comments, and lexicon.txt
7212a48
Replace linux with posix
758a7ae
Address PR feedbacks
59c0891
Update lexicon.txt
db3bfb3
Reduce complexity on Openssl_DigestVerify
4e58663
Fix OTA pal cmake files
1d9afa0
Update demo lexicon.txt
e07585d
Update lexicon and correct spelling
7ddeece
Update lexicon.txt and correct spelling
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,4 +101,3 @@ if(${BUILD_TESTS}) | |
add_subdirectory(${DIR_PATH}) | ||
endforeach() | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule ota-for-aws-iot-embedded-sdk
added at
ab61d0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
set(OPENSSL_USE_STATIC_LIBS TRUE) | ||
find_package(OpenSSL REQUIRED) | ||
|
||
set(THREADS_PREFER_PTHREAD_FLAG ON) | ||
find_package(Threads REQUIRED) | ||
|
||
find_library(LIB_RT rt REQUIRED) | ||
Comment on lines
+1
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What are these for? If this is being introduced in this PR, can I assume it is only required by the OTA PAL? In that case would it make sense to move this to the OTA PAL specific CMakeLists.txt instead of this one? |
||
|
||
# Add the posix targets | ||
add_subdirectory( ${PLATFORM_DIR}/posix ) | ||
|
||
# Add ota porting targets | ||
# add_subdirectory( ${PLATFORM_DIR}/posix/ota_pal ) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spelling: platformimagestage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is platform image state, we have valid, invalid, pending commit states I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, but the t is missing from "platform",