Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Changes to build ArduinoIoTCloud Sketch#149

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
pennam wants to merge3 commits intoarduino:arduino
base:arduino
Choose a base branch
Loading
frompennam:iot-cloud
Draft
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletionslibraries/SocketWrapper/SocketWrapper.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,6 +8,9 @@

#include <zephyr/net/socket.h>

#include <api/Common.h>
#include <api/IPAddress.h>

class ZephyrSocketWrapper {
protected:
int sock_fd;
Expand Down
4 changes: 2 additions & 2 deletionslibraries/SocketWrapper/ZephyrClient.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,8 +31,8 @@ class ZephyrClient : public arduino::Client, ZephyrSocketWrapper {
return ret;
}
#if defined(CONFIG_NET_SOCKETS_SOCKOPT_TLS)
int connectSSL(const char* host, uint16_t port, char* cert) {
auto ret = ZephyrSocketWrapper::connectSSL((char*)host, port, cert);
int connectSSL(const char* host, uint16_t port,constchar* cert) {
auto ret = ZephyrSocketWrapper::connectSSL((char*)host, port,(char*)cert);
if (ret) {
_connected = true;
}
Expand Down
9 changes: 7 additions & 2 deletionslibraries/SocketWrapper/ZephyrSSLClient.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,13 +8,18 @@

#if defined(CONFIG_NET_SOCKETS_SOCKOPT_TLS)
class ZephyrSSLClient : public ZephyrClient {
private:
const char* _cert = nullptr;

public:
int connect(const char* host, uint16_t port) override {
return connectSSL(host, port,nullptr);
return connectSSL(host, port,_cert);
}
int connect(const char* host, uint16_t port, char* cert) {
int connect(const char* host, uint16_t port,constchar* cert) {
return connectSSL(host, port, cert);
}
void setCACert(const char* cert) {
_cert = cert;
}
};
#endif
23 changes: 15 additions & 8 deletionsloader/llext_exports.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,6 +6,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <zephyr/kernel.h>

#define FORCE_EXPORT_SYM(name) \
Expand DownExpand Up@@ -48,13 +49,21 @@ EXPORT_SYMBOL(isupper);
EXPORT_SYMBOL(islower);
EXPORT_SYMBOL(isxdigit);

EXPORT_SYMBOL(sin);
EXPORT_SYMBOL(cos);
EXPORT_SYMBOL(tan);
EXPORT_SYMBOL(atan);
EXPORT_SYMBOL(pow);
EXPORT_SYMBOL(atan2);
EXPORT_SYMBOL(atan2f);
EXPORT_SYMBOL(atanf);
EXPORT_SYMBOL(asinf);
EXPORT_SYMBOL(acosf);
EXPORT_SYMBOL(sqrt);
EXPORT_SYMBOL(sqrtf);
EXPORT_SYMBOL(ldexp);

EXPORT_SYMBOL(mktime);

EXPORT_SYMBOL(k_sched_lock);
EXPORT_SYMBOL(k_sched_unlock);
Expand DownExpand Up@@ -187,19 +196,15 @@ EXPORT_SYMBOL(k_work_schedule);
//FORCE_EXPORT_SYM(k_timer_user_data_set);
//FORCE_EXPORT_SYM(k_timer_start);

EXPORT_SYMBOL(sin);
EXPORT_SYMBOL(cos);
EXPORT_SYMBOL(tan);
EXPORT_SYMBOL(atan);
EXPORT_SYMBOL(pow);

EXPORT_SYMBOL(puts);
EXPORT_SYMBOL(putchar);
EXPORT_SYMBOL(printf);
EXPORT_SYMBOL(sprintf);
EXPORT_SYMBOL(snprintf);
EXPORT_SYMBOL(cbvprintf);
;
EXPORT_SYMBOL(sscanf);
EXPORT_SYMBOL(vsnprintf);

FORCE_EXPORT_SYM(abort);
#if defined(CONFIG_RING_BUFFER)
EXPORT_SYMBOL(ring_buf_get);
Expand DownExpand Up@@ -239,4 +244,6 @@ FORCE_EXPORT_SYM(__aeabi_dcmpge);

#if defined (CONFIG_CPP)
FORCE_EXPORT_SYM(__cxa_pure_virtual);
#endif
#endif

FORCE_EXPORT_SYM(__assert_no_args);
Loading

[8]ページ先頭

©2009-2025 Movatter.jp