Code Monkey home page Code Monkey logo

mbed-edge's Issues

wrong branch name for repo Mbed TLS

We have switched Mbed TLS to version 2.15.1, but in .gitmodules, the branch name is still mbedtls-2.4. It is confused and suggest to correct it.

[submodule "lib/mbedtls"] path = lib/mbedtls url = https://github.com/ARMmbed/mbedtls branch = mbedtls-2.4

Error message when running edge-core

When running edge-core 0.6.0 on x64 without modifications, I get many errors like the following:

2018-10-22 17:33:57.297 tid:  29577 [ERR ][PAL ]: SSL Read return code -30848.
2018-10-22 17:33:57.768 tid:  29577 [ERR ][mClt]: M2MBase::handle_observation() - already auto-observable or missing token!
2018-10-22 17:33:57.980 tid:  29577 [ERR ][mClt]: M2MBase::handle_observation() - already auto-observable or missing token!
2018-10-22 17:33:58.030 tid:  29577 [ERR ][mClt]: M2MBase::handle_observation() - not observable!
2018-10-22 17:33:58.182 tid:  29577 [ERR ][mClt]: M2MBase::handle_observation() - already auto-observable or missing token!
2018-10-22 17:33:58.282 tid:  29577 [ERR ][mClt]: M2MBase::handle_observation() - not observable!
2018-10-22 17:33:58.581 tid:  29577 [ERR ][mClt]: M2MBase::handle_observation() - already auto-observable or missing token!
2018-10-22 17:33:58.631 tid:  29577 [ERR ][mClt]: M2MBase::handle_observation() - not observable!
2018-10-22 17:33:58.780 tid:  29577 [ERR ][mClt]: M2MBase::handle_observation() - already auto-observable or missing token!
2018-10-22 17:33:58.879 tid:  29577 [ERR ][mClt]: M2MBase::handle_observation() - already auto-observable or missing token!
2018-10-22 17:33:59.085 tid:  29577 [ERR ][mClt]: M2MBase::handle_observation() - already auto-observable or missing token!
2018-10-22 17:33:59.138 tid:  29577 [ERR ][mClt]: M2MBase::handle_observation() - not observable!
2018-10-22 17:33:59.253 tid:  29577 [ERR ][mClt]: M2MBase::handle_observation() - already auto-observable or missing token!
2018-10-22 17:33:59.453 tid:  29577 [ERR ][mClt]: M2MBase::handle_observation() - already auto-observable or missing token!

A full debug output dump here:
https://gist.github.com/moonchen/db91ac6d862a5aa9eddad8768d7ef539

CMAKE failed to find the thread module

i have cloned the master branch and done cmake, the result as follows.

Building with mcc-linux-x86 toolchain
Building with mcc-linux-x86 toolchain
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
Building with mcc-linux-x86 toolchain
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
Building with mcc-linux-x86 toolchain
-- Detecting C compiler ABI info - done
-- Detecting C compile features
Building with mcc-linux-x86 toolchain
Building with mcc-linux-x86 toolchain
Building with mcc-linux-x86 toolchain
-- Detecting C compile features - done
-- Looking for pthread.h
Building with mcc-linux-x86 toolchain
-- Looking for pthread.h - not found
CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
/usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.13/Modules/FindThreads.cmake:205 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:44 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/jotman01/docker/dockertest/nginx/mbed-edge/build/CMakeFiles/CMakeOutput.log".
See also "/home/jotman01/docker/dockertest/nginx/mbed-edge/build/CMakeFiles/CMakeError.log".

Cannot build without update_default_resources

I'm following the instructions in README, and at no point it tells me to have an update_default_resources.c file. But the build fails if it's not present. I don't have the UPDATE_ENABLED (or whatever it's called) macro enabled either. Could we add an empty cert to the project similar to what we do for mbed-cloud-client-example?

Cmake failure with the latest version code

Test environment: Ubuntu 16.04
Test steps: follow up the instructions in readme.

With the latest code tag 0.11.0, it will fail when run cmake -DDEVELOPER_MODE=ON -DFIRMWARE_UPDATE=OFF .. command.

With tag 0.10.0 , I can complete the build successfully.

Access socket from outside VM

I have a BLE protocol translator. It can only run on my host OS, because forwarding BLE events does not work properly. Mbed Edge can only run on Linux, so it has to sit in my VM.

With latest Edge I can no longer develop. I need a way to access the socket from my host OS. This was fine before.

device deregistration is not working

Hi,

Using pt-example or simple-js-examples/simple-pt-example.js from https://github.com/ARMmbed/mbed-edge-examples, will not make devices deregistered in Pelion Portal.

Here is a screenshot for simple-pt-example device:
events-log
As you can see there's only one Device deregistered, and that's 1h after the first one, probably because:

#define MBED_CLOUD_CLIENT_LIFETIME 3600

The same stands true for pt-examples 3 devices.

Build Error

Hello all,

am trying to build the project (latest master) but during CMake, some errors occur and make fails.

Using an Ubuntu 16.04.7 LTS (Xenial Xerus) machine with all the dependencies as specified by the instructions installed.

Further the 'config/ directory is filled with the required credentials mbed_cloud_dev_credentials.c and update_default_resources.c

Command line:

cmake -DTRACE_LEVEL=DEBUG -DDEVELOPER_MODE=ON -DFIRMWARE_UPDATE=ON -DEDGE_REGISTERED_ENDPOINT_LIMIT=100 -DEDGE_PRIMARY_NETWORK_INTERFACE_ID=ens33 ..

Output of CMake:
CMake Output

and the log files:
CmakeError.log
CMakeOutput.log

Let me know if you need more information.

Thank you.

Can't build on raspbian

Hi,

I wanted to run mbed-edge on raspbian, and I built it as follows, but the error occurred as follows.
How can I solve it?

==== executed command ====
udo apt-get -y update
sudo apt-get -y install libc6-dev
sudo apt-get -y install libmosquitto-dev mosquitto-clients
sudo apt-get -y install build-essential cmake git doxygen graphviz
git clone https://github.com/ARMmbed/mbed-edge/
cd mbed-edge
#git submodule update --init --recursive
git submodule init
git submodule update
mkdir build
cd build
cat < toolchain_file
set(CMAKE_MAKE_PROGRAM make)
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)
EOF
cmake -DCMAKE_TOOLCHAIN_FILE=toolchain_file -DDEVELOPER_MODE=ON -DFIRMWARE_UPDATE=OFF ..
make

==== error ====
cmake -DCMAKE_TOOLCHAIN_FILE=toolchain_file -DDEVELOPER_MODE=ON -DFIRMWARE_UPDATE=OFF ..
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/gcc
CMake Error: Generator: execution of make failed. Make command was: "" "cmTC_5fedb/fast"
-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error at /usr/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler

"/usr/bin/gcc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/pi/src/pelion/mbed-edge/build/CMakeFiles/CMakeTmp

Run Build Command:"" "cmTC_5fedb/fast"
No such file or directory
Generator: execution of make failed. Make command was: "" "cmTC_5fedb/fast"

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:28 (project)

-- Configuring incomplete, errors occurred!
See also "/home/pi/src/pelion/mbed-edge/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/src/pelion/mbed-edge/build/CMakeFiles/CMakeError.log".

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.