Comments (4)
That part of the library is commented out because Arduino core developers are stupid and have different SPI APIs across different boards - making SPI data transfer libraries like this super difficult. Can post the entire error?
from serialtransfer.
Thanks for Response:
Command: sendSize = myTransfer.txObj(testStruct, sendSize);
Error: sendSize = no matching function for call to 'SPITransfer::txObj(STRUCT&, uint16_t&)'
Command: sendSize = myTransfer.txObj(arr, sendSize);
Error: invalid conversion from 'char*' to 'int' [-fpermissive]
I am using ESP32 Dev Kit C
from serialtransfer.
This error doesn't make sense considering the first argument for SPITransfer::txObj()
is templated:
SerialTransfer/src/SPITransfer.h
Lines 27 to 49 in c596233
I honestly don't know what's going wrong - perhaps someone on the Arduino forum would be of more help
from serialtransfer.
I just revisted .h and .cpp
There is some stuff like this:
Description:
------------
* Stuffs "len" number of bytes of an arbitrary object (byte, int,
float, double, struct, etc...) into the transmit buffer (txBuff)
starting at the index as specified by the argument "index"
Inputs:
-------
This seems to be Comment but not marked as comment.
This one:
*** const T &val - Pointer to the object to be copied to the**
Not sure what it is , declaration or Comment , may be this needs to be separated.
Had I been this expert to do myself, I would be developing libraries not using them , LoL
from serialtransfer.
Related Issues (20)
- compute CRC on all bytes (apart from start, stop and CRC byte of course) HOT 1
- the limit of 254 max bytes doesn't avoid the 0x7E value in the packet HOT 3
- Why is the main code commented? HOT 2
- Use this to send a file update from device A to B HOT 2
- Changing ports doesn't work with ESP32 HOT 1
- Use of abstract class as common interface
- Two way communication HOT 3
- Data Transfer Between ESP 32 And Arduino Mega HOT 1
- Documentation on how to send&recieve a single datum struct object (via serial) that exceeds the 254-byte maximum packet size HOT 1
- Compile time error on STM32F103 BluePill HOT 4
- Stale Packet error HOT 1
- When transmitting packets larger than 32 bytes got ERROR STALE PACKET HOT 2
- Does it work with ESP8266(NODEMCU V3)? HOT 5
- Please provide examples of transferring more types of data. HOT 2
- Packet reset() overrides meaningful status in parse() HOT 3
- Best method for checking that a packet is valid before reading the contents? HOT 4
- File Transfer Not working as Expected[ESP-CAM to ESP32] HOT 3
- Received data always 7 (after converted to int) HOT 5
- Compatibiliy with AtMega4808 under MegaCoreX /w SoftwareSerial HOT 2
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 serialtransfer.