[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
What is a good/ best way for communicate with external device in RISC  XML
Forum Index -> Development
Author Message
wwillemsens

Power User

Joined: 14/11/2016 18:05:48
Messages: 32
Offline

Dear forum members,

How can I communicate via RISC with an external device? I have a USB-cardreader which I can connect and read via a default Java Application or Applet. But it would be nice if I can connect from a RISC webpage to the cardreader.
- Can I add my applet in a RISC page, and communicate between the applet and the RISC webpage?
Or what is the best way to do this?

Can I do something with isubdevice.

Any help is welcome
Kind regards
Wim

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5524
Offline

Hi Wim,

please do not add some applet in a RISC client ;-) - even though it is theoretically possible.

Please check the following document:
http://www.captaincasa.com/pdf/eclnt_risc_developersguide_addon_localinterfaces.pdf

Regards, Björn

Björn Müller, CaptainCasa GmbH
wwillemsens

Power User

Joined: 14/11/2016 18:05:48
Messages: 32
Offline

Dear,

Thanx, I would try this...

Kind regards
Wim
wwillemsens

Power User

Joined: 14/11/2016 18:05:48
Messages: 32
Offline

I made some kind of progress...
I have a basic webserver that answers on calls (I tested it with a browser, it sends some plain text).
But how do I read the response from the webserver in captaincasaRisc?

I tried it with this code :

Code:
 BaseActionEventClientHttpSend baechr = (BaseActionEventClientHttpSend) event;
 response = baechr.getResponseAsUTF8String();
 


But the response is always : Response http-status:0

So there must be a better way ;-)

Thanks in advance
wwillemsens

Power User

Joined: 14/11/2016 18:05:48
Messages: 32
Offline

I think I figured it out, was something with the settings of the webserver...
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team