Dragon: processing node discovery protocol based on static attributes for homogeneous and heterogeneous wireless sensor networks