Despite declining sales overall, the fabless semiconductor company saw record revenue from IoT solutions.