My project involves a control system for my water well for my house. It will read the well level from a Eno Scientific Well Watch 660 depth sensor, hooked to a 310 monitor. The sensor bounces a sound wave down the well and measures the water level. So if it measures 300ft, and my pump is 474ft down, I've got 174ft of water in the well = good. If it reads 474... my well is out of water, and it'll automatically use a reserve tank. I've already got this all wired up, and can use the XBEE example to repeat the Well Watch string on the serial terminal no problem, but that's as far as I can get. I'm working in SPIN.
The sensor spits out a RS232 string as follows, it's going through a MAX3232 of course:
>>2019/03/09 11:59:03 0 D 316.04 Ft
Date/time/ I don't know what the 0 is, and the D stands for Depth. I need some help and code example like above please! I've been trying to figure out the mechanics of the above weather parsing setup, however, it's a bit over my head. I'm interested in extracting the hours, and the feet (in whole feet is fine, don't need the decimal place) out of that string. I'm not familiar with working with byte arrays, and the parsing is beyond me too...Thanks for your help!