Comments (15)
It looks like you just copy-pasted the part from ArxTypeTraits to Types.h related to is_same, so I'm not sure why that would stop it from working.
I don't have Mega on hand right now, so I can't try it right away. Could you send me the serial console contents when you get it working on both the main branch and the refactor branch?
from arxtypetraits.
Hi, is this a part of implementing this library?
DataLinkLayer<HardwareSerial, HardwareSerial>(&Serial1, &Serial, 0xF6, 9600);
If so, maybe your usage is not correct. Please give me minimal whole code that can compile and reproduce a problem.
from arxtypetraits.
no DataLinkLayer is part of my code and it's not from ArxTypeTraits
if you want my full code here is the link to repo:
https://github.com/mohammadmahdi255/PBFT-Arduino-Client
from arxtypetraits.
I looked in the repositories but could not find where the ArxTypeTraits are being used or how to reproduce the problem.
from arxtypetraits.
oh
sorry i will make a branch for that
from arxtypetraits.
i copied some of your code to type.h to solve my problem i will
change the code the way it was
from arxtypetraits.
i add ArxTypeTraits to data_link.hpp in branch refactor
also i compile the code so there is no issue with compile time at my side
from arxtypetraits.
Can this branch be compiled but not working?
from arxtypetraits.
yes i compile the code
in arduino IDE 2.2.1v
from arxtypetraits.
I've tried to open and upload your repo to my mega, but it has already been removed. Have you solved this problem?
from arxtypetraits.
no i'm not resolve it i check my repo and refactor brach still exist
from arxtypetraits.
this is the link to brach refactor
from arxtypetraits.
Thanks, but I couldn't compile it.
data_link.hpp:13:10: fatal error: cppQueue.h: No such file or directory
#include <cppQueue.h>
Also, I have tested the following code on Mega. It worked correctly. I think your own code, not this library, causes this issue.
#include <ArxTypeTraits.h>
template <typename T>
void say() {
if (std::is_same<T, int>::value) {
Serial.println("int");
} else {
Serial.println("others");
}
}
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
delay(5000);
say<int>();
say<float>();
}
void loop() {
// put your main code here, to run repeatedly:
}
int
others
loop...
loop...
loop...
loop...
from arxtypetraits.
Please make an example that can reproduce this problem using only ArxTypeaTraits. If you can, itβs the problem of this library or the usage. If not, the problem is in your own code.
from arxtypetraits.
I found cppQueue.h in https://github.com/SMFSW/Queue/tree/master
And run your refactor branch on Mega. It worked without a runtime error like you mentioned. Maybe this library is not the cause of your error.
suddenly board print someof the first char in my setup code and then restart
even if i'm not calling any of your functions including your library causing the board to stop
This is a log
Initialize
ARP REQUEST NIC 0xF6
ARP REQUEST NIC 0xF7
ARP REQUEST NIC 0xF8
ARP REQUEST NIC 0xF9
SEND NIC 0xF6
==============================================================0xf6 0xff 0x04 0x08 0x01 0xf6 0xff 0x7c 0x36 0x0d 0x64 ==============================================================
SEND NIC 0xF7
==============================================================0xf7 0xff 0x04 0x08 0x01 0xf7 0xff 0xe1 0x78 0xa4 0xa9 ==============================================================
SEND NIC 0xF8
==============================================================0xf8 0xff 0x04 0x08 0x01 0xf8 0xff 0xc7 0xa3 0xe7 0xa7 ==============================================================
SEND NIC 0xF9
==============================================================0xf9 0xff 0x04 0x08 0x01 0xf9 0xff 0x5a 0xed 0x4e 0x6a ==============================================================
If you still need help after making the following example, please feel free to reopen this issue.
Please make an example that can reproduce this problem using only ArxTypeaTraits. If you can, itβs the problem of this library or the usage. If not, the problem is in your own code.
from arxtypetraits.
Related Issues (3)
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 arxtypetraits.