Comments (6)
from mbed-os-example-client.
ARM Internal Ref: IOTCLT-1246
from mbed-os-example-client.
@SeppoTakalo Can you please look into this ?
from mbed-os-example-client.
@sg- , please investigate
from mbed-os-example-client.
Not supported in https://github.com/ARMmbed/mbed-os-example-client#supported-target-hardware-configurations
Known issue. https://github.com/ARMmbed/oob-mbed-os-example-client/issues/15
from mbed-os-example-client.
After reading the pointers and causes commented in ARMmbed/oob-mbed-os-example-client#15 managed to run it by making the following changes to the example:
In simpleclient.h Replace:
M2MSecurity* create_register_object() {
// create security object using the interface factory.
// this will generate a security ObjectID and ObjectInstance
M2MSecurity *security = M2MInterfaceFactory::create_security(M2MSecurity::M2MServer);
// make sure security ObjectID/ObjectInstance was created successfully
if(security) {
// Add ResourceID's and values to the security ObjectID/ObjectInstance
security->set_resource_value(M2MSecurity::M2MServerUri, _server_address);
security->set_resource_value(M2MSecurity::SecurityMode, M2MSecurity::Certificate);
security->set_resource_value(M2MSecurity::ServerPublicKey, SERVER_CERT, sizeof(SERVER_CERT));
security->set_resource_value(M2MSecurity::PublicKey, CERT, sizeof(CERT));
security->set_resource_value(M2MSecurity::Secretkey, KEY, sizeof(KEY));
}
return security;
}
With
M2MSecurity* create_register_object() {
// create security object using the interface factory.
// this will generate a security ObjectID and ObjectInstance
M2MSecurity *security = M2MInterfaceFactory::create_security(M2MSecurity::M2MServer);
// make sure security ObjectID/ObjectInstance was created successfully
if(security) {
// Add ResourceID's and values to the security ObjectID/ObjectInstance
security->set_resource_value(M2MSecurity::M2MServerUri, _server_address);
security->set_resource_value(M2MSecurity::SecurityMode, M2MSecurity::NoSecurity);
}
return security;
}
In mbed_app.json
"MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES" and "MBEDTLS_TEST_NULL_ENTROPY" need to be added to macros
In mbed-os\targets\TARGET_STM\TARGET_STM32F4\TARGET_NUCLEO_F401RE\PinNames.h
Since PA_5 is used by the SPI clock LEDs need to be "rewired" to an unused pin (e.g. PA_9)
LED1 = PA_9,
LED2 = PA_9,
LED3 = PA_9,
LED4 = PA_9,
Keep in mind that we register our devices on a Leshan LWM2M server with disabled security for testing purposes. This solution probably won't be useful if the deviced is intended to be used in conjunction with mbed Device Connector
from mbed-os-example-client.
Related Issues (20)
- TLS protocol & Mbed Device Connector Server HOT 3
- Runtime error with WiFi & mbed-os-5.5 HOT 23
- General instability on REALTEK_RTL8195AM (GCC_ARM) HOT 11
- Compilation errors with K64 + Ethernet HOT 4
- Test failure of example with k64 + Ethernet arm compiler HOT 11
- Export test for make_armc5 mbed-os-5.6-oob2 (2nd round OOB) - K64F + Ethernet HOT 2
- [ERR ][mClt]: M2MConnectionSecurityPimpl::timer_expired - handshake timeout HOT 8
- REALTEK_RLT8195AM - LED definitions broken? HOT 2
- mbed connector - backward compatibility problem? HOT 9
- Wifi ST idw0x using NULL_ENTROPY HOT 13
- WiFi connection fails with client compiled by IAR IDE HOT 10
- client fails to connect via UDP when binary is compiled by Online Compiler HOT 10
- Fails to compile with ARM compiler HOT 6
- Client app + LwIP IPv6 fails to connect to network HOT 13
- Latest mbed-os-example-client uses non-official version of mbed Client and libraries HOT 8
- When device connect to mbed cloud, It prints "device not registerd" message. HOT 2
- Incorrect SOCKET_MODE set when using mesh config HOT 3
- IAR make build fails with K66F HOT 5
- Odin related link section in readme is missing HOT 5
- Without Ethernet : mbed-os-example-client using LPC1347 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbed-os-example-client.