Was there a Symptom Number behind the code? For example, C0035 00 or C0035 5A?
This will more specifically explain the problem. It boils down to this, you have a loose or broken connection, bad wiring or a bad sensor in the hub. If the latter, you have to change out the entire hub and most of us use Timken as they are OE supplier. I've bought Chicom hubs that mechanically were fine but did not work with vehicle's ABS so consider that.
Unplug the connector, blow out the dirt, check the wiring and if all looks ok, time for a hub. If you want to do it yourself, we'll give you the torque specs and tell you what tools you'll need and such.