> > What I personally would love to see/have/get is a 1wire slave code template > > that would allow me (or others) to create their own 1wire slave(s). Of > course first we would need to define a general set of commands that > allows to transmitt and receive any kind of values between the slave and > owfs. > > That's exactly what MoaT does. Well, except for the "general" part. :-P > > I could of course add some pre-defined "add your code here" channel > which you'd only have to hook into. However, IMHO it's much more useful > to add the feature to MoaT as something distinct. Thus if you add, say, > an ultrasonic distance measurement device or two to your slave, MoaT > would export distance.1 ? distance.N, which means that the server-side > code does not need to care about the implementation details on the slave > side of things.
What happens e.g. if I want to add a totally new fancy roadrunner detector by ACME from which nobody else ever heard or my own sensor I invented myself? As I assume there are no pre-defined exports like fancy.1..N nor myself.1..N (as you can't know yet how they work), I would be very happy about such a generic/general interface. If it would allow to return an array (vector, list however you want to call it) of chars per sensor and this is implemented in owfs too, it would allow for experimental devices. And it would serve as a nice example for "beginners" like me on how to use (or abuse ;) your code. > An additional advantage of this approach is alarm handling. You do not > want to poll your devices, that's much too slow. Instead, you want to > get notified (via Conditional Search) when something interesting > happens. Thus the distance thing will alert your master as soon as > something is e.g. 5m away, after which your app will say, OK, good to > know, now tell me again when it's either gone away or moved to at most 4.5m. I agree alarm handling is cool. If that could be implemented for a generic value as well would be super cool! :) But I consider this as a "nice to have" not a "must have". Greetings ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers