Coder Social home page Coder Social logo

Comments (4)

fixajteknik avatar fixajteknik commented on July 20, 2024 2

ı 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.

xreef avatar xreef commented on July 20, 2024

Thanks,
I start check all the examples for the e220 version.
Bye Renzo

from ebyte_lora_e22_series_library.

fixajteknik avatar fixajteknik commented on July 20, 2024

from ebyte_lora_e22_series_library.

xreef avatar xreef commented on July 20, 2024

Hi,
It's beautiful. I'll try to share it.
Thanks Renzo

from ebyte_lora_e22_series_library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.