In compliance with high industry standards

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

[SOLVED] RTC.h out of scope problem

RTC
By
Stefano Consolaro
on 3/25/21, 12:05 PM 191 views

Hi, I'm having problem using RTC.h.

In an installation on Ubuntu 16.04 with the Arduino IDE 1.8.5 I used your example without problem.

I did a new installation on another system Ubuntu 20.04 with the same IDE and the same script doesn't work due to an error because while using the instruction RTC.setTime(__TIME__) (or whateaver RTC.method) the "RTC.h out of scope" arise.

I suppose that the problem is due to the fact that I installed the RTC.h standard library and this is used at first istance, but I think that this library is already included in yours and that it instantiate the RTC object automatically.

Do you have some idea?

Thanks


0
Stefano Consolaro
On 3/27/21, 11:45 AM

I solved the problem and write here the solution as monition to other users.

The problem was on the selection of the board: on the trouble setup I chose "M-Duino 42" on the good one I chosed "M-Duino 42+".


Your Reply


0
Industrial Shields Forum user

Guillem Cura Marti

--Guillem Cura Marti--

1000000015
| 0 0 0
Sant Fruitós de Bages, España
--Guillem Cura Marti--
Guillem Cura Marti
On 3/26/21, 6:43 AM

In order to work with the RTC module you have to use one of the MDuino products. Make sure to be using our "industrialshields" boards as the RTC.h is modified for being able to work with our devices. You can read all the information about the RTC on this blog

Take in account that it is only nedeed to set up the clock the first time as the RTC will internally save the configuratio, If you need more information feel free to contact us!


Your Reply

Keep Informed

About This Community

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together. Read Guidelines

Question tools

15 follower(s)

Stats

Asked: 3/25/21, 12:05 PM
Seen: 191 times
Last updated: 3/28/21, 5:42 AM