Main Site Documentation

OneWire Select()


#1

There’s currently no such method in the OneWire class to select an individual target by it’s 64bit ROM code. Can one please be added so I don’t have to hack my implementation in?

See:

		/// <summary>
		/// Select a Onewire device
		/// </summary>
		/// <param name="oneWire"></param>
		/// <param name="addr"></param>
		private static void OneWireSelect(OneWire oneWire, byte[] addr)
		{
			oneWire.WriteByte(0x55);

			for (int i = 0; i < 8; i++)
			{
				oneWire.WriteByte(addr[i]);
			}
		}

#2

Good point! I will pass it on