The stupid question is the question not asked | |
PerlMonks |
Presence and Net::XMPPby morgon (Priest) |
on Apr 19, 2016 at 23:37 UTC ( [id://1160952]=perlquestion: print w/replies, xml ) | Need Help?? |
morgon has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I can't figure out how to set a presence with Net::XMPP... I have rapsody running on a Raspberry Pi and would like to implement a bot that I can send messages from my phone. I can indeed send messages but I cannot make my bot become visible in my android app... This is what I try: The output (when no other client is connected) is: Actually this is enough to send messages to the bot but the Pi is shown as offline in my Android app. I assume the problem is the presence... So when I change the SetPresence-call to this: I get this: So yeah, I can set the status, but what I want to do is set the type, so I try: But now I get: So does anybody know how to set a presence of "available" with Net::XMPP? Many thanks!
Back to
Seekers of Perl Wisdom
|
|