Permalink
Browse files

REST-PCA rename to XPCA

  • Loading branch information...
1 parent abed890 commit 7fe1626e2cfe26bfee2f92952f487cbe1d4cbf7a @flipback flipback committed Jul 16, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 examples/{simple-pca → simple-xpca-gateway.rb}
@@ -1,6 +1,5 @@
-#!/usr/bin/env ruby
=begin
-It's very simple example of implementation REST-PCA server (see http://www.xpca.org/rest-pca/)
+It's very simple example of implementation XPCA gateway (see http://www.xpca.org)
for communication with TCP ModBus devices
It receives REST requests (e.g http://127.0.0.1:4567/mb/127.0.0.1/8502/1/coils/6/17 )
and returns data in JSON format addr : data:
@@ -79,7 +78,7 @@
:message => e.message }
}
end
-
+
content_type "application/json"
resp.to_json
end

0 comments on commit 7fe1626

Please sign in to comment.