8 years, 9 months ago.

nRF51 I2C MPU6050

Hi,

I'm currently working with nRF 51 DK, and mbed compiler, and I want to stream MPU6050 live values over BLE. I copy some code from Nordic Cube puck, and basically i'm working with MPU6050 library.

But, when i'm trying to compile, I have the following error : "mbed::Stream::Stream(const mbed::Stream &)"(declared at extras/mbed_487b796308b0Stream.h:55) is inaccessible "class Serial : public SerialBase, public Stream { "

Where do you think it comes from ?

if you get any undeclared messages it is probably because you're using code you downloaded online and the dependencies are not done correctly if you only cut/paste the .cpp file rather than importing the project via the compiler function. if you need to get cpp code you download working, right click your new project and import libraries by search then search for something similar. you don't always find hardware specific libraries but often you'll find something suitable that can be modified to work to your purpose.

hope this helps, ray

posted by Raymond Henick 14 Jan 2017
Be the first to answer this question.