If this is the Edward Hartley who was a midshipman on the Atlas in 1798 and Defiance in 1799, he had a wife Grace who died circa 1798/9* per the Allotment Declarations. This marriage doesn't seem to feature in the online trees.
Marriage to Grace Osborne, Stoke Damerel, 3 April 1797
Child Edward Osborn Hartley born 27 January 1798, baptised at Stoke Damerel 27 May 1798. Per the Allotment Declarations, a Jno Paulby seems to have been appointed guardian.
*Grace Hartley buried at Stoke Damerel 3 October 1798 age 21