Comments (4)
ı think library need modifications. I have added free() command and fixed. at line 891/892 https://github.com/xreef/EByte_LoRa_E22_Series_Library/blob/master/LoRa_E22.cpp#L894
memcpy(fixedStransmission->message,(unsigned char*)message,size);
ResponseStatus status;
status.code = this->sendStruct((uint8_t *)fixedStransmission, size+3);
free(fixedStransmission); // Burayı ekledim, I have added this line
if (status.code!=SUCCESS) return status;
//free(fixedStransmission);
and at the receiver side I have to add .close() command in example. I didnt see close command in examples like E32 examples
if (e22ttl.available() > 1) {
ResponseStructContainer rsc = e22ttl.receiveMessageRSSI(sizeof(Message));
Serial.println(rsc.status.getResponseDescription());
struct Message message = *(Message*) rsc.data;
Serial.println(message.type);
Serial.println(message.message);
Serial.println(*(int*)(message.temperature));
Serial.print("RSSI: "); Serial.println(rsc.rssi, DEC);
rsc.close(); // Bu satırıda gelen mesajları okuduktan sonra eklemek gerekiyor yoksa arduino donuyor. This line added
}
it works fine almost 2 days
from ebyte_lora_e22_series_library.
Thanks,
I start check all the examples for the e220 version.
Bye Renzo
from ebyte_lora_e22_series_library.
from ebyte_lora_e22_series_library.
Hi,
It's beautiful. I'll try to share it.
Thanks Renzo
from ebyte_lora_e22_series_library.
Related Issues (20)
- How many device can send data a center Simultaneously? HOT 1
- configuration.TRANSMISSION_MODE.WORTransceiverControl = WOR_RECEIVER; HOT 9
- Wrong interpretation of returned string on WRITE_CFG_PWR_DWN_LOSE HOT 2
- Guru meditation error triggered within receiveStruct routine(s) HOT 2
- Potential memory leak HOT 7
- Can you please tell me how to change the frequency of transmission / reception? HOT 1
- FREQUENCY_915 is incorrect HOT 1
- How to add key for e22 lora modules HOT 3
- Arduino Nano gets/sends incorrect data. Looks like a bug in the library - Strings or memory manipulation. HOT 1
- No support for 0.3k and 1k2 modes in E22 modules V2.1 (and V2.0) HOT 3
- E22-900M30S support HOT 1
- Support E32868T30D based on SEMTECH's SX1276 RF HOT 1
- Não estou conseguindo colocar a frequência de comunicação em 915Mhz, so trabalha no padrão 433Mhz HOT 3
- Use the module to send data to TTN HOT 1
- esp32-idf HOT 1
- Need your help with transporting audio over Lora HOT 4
- Build error on HOT 1
- hope will be a esp32_e32_web_manager_gateway for e22. HOT 2
- questions about E22-900M22S 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 ebyte_lora_e22_series_library.