Simple InfraRed program

Discuss PocketC for CE (including Desktop Edition)

Postby Gordon.F_69 on Wed Jul 21, 2004 12:35 am

I try since 2 day to send data by the IR port without sucess :(

My "simple" program :

#include "\\PocketC\\pcheader.h"
#include "\\PocketC\\pcirda.h"
#include "\\PocketC\\pcfilesys.h"

int main (void)
int ok=0;
SOCKET sock;
if (iropen(sock))
{putsl("iropen sucess");}
{putsl("iropen failed");}

if (irsendint(sock,15,10))
{putsl("irsendint sucess");}
{putsl("irsendint failed");}

And I've all time :
iropen sucess
irsendint failed

Plz Help me...

And if you can, give me source code for send data...(I'm a "Noob" in this language)

Sorry, for my english, I'm no very good...
Posts: 1
Joined: Tue Jul 20, 2004 12:12 pm
Location: France

Postby stanley602 on Sun Feb 12, 2006 12:12 pm

I'm having a similar problem, don't have the code any more cos it didn't work. I think it needs to actually connect to a device before you can send anything. I don't know.

The pixels are alive! Death to the pixels!
The pixels are alive! Death to the pixels!
Posts: 12
Joined: Sat Feb 11, 2006 6:35 pm
Location: United Kingdom

Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 1 guest