Giter VIP home page Giter VIP logo

Comments (8)

Dond96 avatar Dond96 commented on July 19, 2024

Example:

void scheduled_function()
{
d7ap_send(message); // Returns 0 in both cases
}

bool unsolicited_cb(args)
{
sched_post_task(&scheduled_function); // Doesn't work
timer_post_task_delay(&scheduled_function, delay); // Does work
return false;
}

from sub-iot-stack.

LOorts-Aloxy avatar LOorts-Aloxy commented on July 19, 2024

this is a bit of a weird use case to me, you want to transmit a message when getting an unsolicited message, but you don't want to answer it in the same dialog? I think now you're trying to start a new dialog while the previous one is still wrapping up, however it should indeed not return SUCCESS.

from sub-iot-stack.

Dond96 avatar Dond96 commented on July 19, 2024

I don't respond in the dialog because I'm switching access classes to go from background scanning to continious forground scanning.

from sub-iot-stack.

LOorts-Aloxy avatar LOorts-Aloxy commented on July 19, 2024

won't it be better to first answer and then switch classes? I think you still want to transmit to the same device?

from sub-iot-stack.

Dond96 avatar Dond96 commented on July 19, 2024

I do answer first. The scheduled function just sends the next message using the new access class.

from sub-iot-stack.

LOorts-Aloxy avatar LOorts-Aloxy commented on July 19, 2024

so you're scheduling two d7 messages at the same time? Sorry, just trying to get a grasp of the situation. alp never directly schedules an independent answer right after it got some unsollicited message

from sub-iot-stack.

Dond96 avatar Dond96 commented on July 19, 2024

Well the message gets send in a function thats called by the scheduler so it should be send outside the scope of the unsolicited callback. I think the message did end up in the message queue but it didn't get send. I could trigger the function by pressing a button on another board and after pressing it a couple of times the d7ap_send funciton would return an error code but the messages were never transmitted. (I think the error code was caused because the buffer was full)

from sub-iot-stack.

LOorts-Aloxy avatar LOorts-Aloxy commented on July 19, 2024

ok, weird, we'll have to look into that. We haven't seen this happen using alp above d7.

from sub-iot-stack.

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.