Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

104
Visualizações
Sending a fetch request while connected to an iOT device without internet

I'm developing an iOS app using Ionic (JavaScript Framework) and I'm connecting to an Iot device and sending a fetch request to it.

If my phone doesn't have a cellular connection, the fetch fails.

This is the process:

  1. Turn on Iot device

  2. Use app to connect to device access point

  3. Send fetch request to device

     try {
       const response = await fetch('http://192.168.1.1/');
       // handle response
     } catch(err) {
       console.log(err);
       // handle error
    }
    
  4. Fetch fails

Is there a way for the fetch to work when connected to an access point without internet? Are there any other libraries that might help me achieve this?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda