Comments (1)
Hi, I can't believe that this issue is still unresolved. TL;DR: scroll down for the solution.
I've got some points, let me summarize the issue here.
This piece of code can't be compiled in 1.8.3
:
#include <Bridge.h>
#include <ModbusMaster.h>
void setup() {}
void loop() {}
because it produces error:
...libraries/Bridge/src/Bridge.cpp:121:33: error: '_crc_ccitt_update' was not declared in this scope
For some reason, it works if you comment out ModbusMaster.h
, compile the code and then uncomment the ModbusMaster.h
and recompile again. But this is not a clear solution, because a lot of code depends on modbus library (you have to comment out whole project then). Let's go for a real solution:
Bridge.cpp:105
is checking ARDUINO_ARCH_AVR
:
#if defined(ARDUINO_ARCH_AVR)
#include <util/crc16.h> // AVR use an optimized implementation of CRC
#else
uint16_t _crc_ccitt_update(uint16_t crc, uint8_t data) // Generic implementation for non-AVR architectures
{
...
#endif
With locate
and grep
I've checked which util/crc16.h
contains _crc_ccitt_update()
and this function is not found in .../Arduino/libraries/ModbusMaster/src/util/crc16.h
. This file just adds crc16_update()
in case if _UTIL_CRC16_H_
is not defined but it is not regular crc16.h replacement but somehow prefered during the compilation. Probably @4-20ma should consider this as an issue.
Solution: (hotfix) rename util/crc16.h
to something like crc16_.h
and modify also ModbusMaster.h:58
from bridge.
Related Issues (17)
- YUN: Errors executing Curl or Client.get via Bridge: different behaviors based on length of commands/URL HOT 1
- bridge.cpp should not use String HOT 2
- FileIO File class lacks default assignment operator HOT 3
- FileSystem.open always fails on directories
- Bridge.get("key", buffer, 0) takes forever HOT 1
- Compilation errors when Including Bridge.h or Invoking Bridge.begin(): no known conversion for argument 1 from ‘const __FlashStringHelper*’ to ‘const char*’ HOT 1
- Reference page doesn't document print() and println()
- Trouble compiling sketches with Bridge library HOT 1
- configurable max_retries
- Strange serial behavior HOT 1
- Problem with request curl, library Bridge.h
- async transfer() method
- No Serial Monitor output from sketch using Bridge library
- Add GitHub Action based CI
- Problem opening bmp file with FileIO on the Arduino Yún SD card to image on TFT screen. HOT 12
- Problem opening bmp file with FileIO on the Arduino Yún SD card to image on TFT screen. HOT 12
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 bridge.