Randy, I have not seen anything yet about a Thomas Wiley who died ca 1766, though I may have missed that somewhere. I have some data on your William Wiley (b. ca 1730 d. bef 1783). However, according to "The Gray Family and Allied Lines" by Jo White Linn he may have been the son of another William Wiley and Jane EWING.Jane was widowed before she emigrated from Northern Ireland to Pennsylvania. Her son William came to NC ca 1754 and got land grants there in 1758-9.
The younger William had two wives, Elizabeth FERGUSON and Mary MEBANE. He also had at least six children besides the son William that you mentioned. Please let me know if you are interested in those.
Unfortunately, I have this William, Jr. married to Annie SHANNON.They wound up in Hendricks Co. IN. He did not have a son named Robert. We clearly have different Williams here.