Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by pooya · Sep 08, 2017 at 09:00 PM · networkinghttps

HTTP Chunked responses

I've done few simple projects in Unity using networking protocols but this one has been very very different! I am working on a project to create a 3D interface by reading and visualizing live information from dweet.io. I can read the latest value by sending a request and show it on the screen like the below code. BUT instead of one value, I would like to read constantly (like a stream) from the server. Dweet suggests to use "https://dweet.io/listen/for/dweets/from/{thing}" and HTTPS chunked responses in your code instead of sending multiple requests. Dweet keeps the channel opens while the application reads from it. I am trying to read from this source for example: https://dweet.io:443/get/latest/dweet/for/arduino-lviv-weather-flash but I don't know how to implement HTTPS chunked responses in Unity! Any thoughts?

 using UnityEngine;
 using System.Collections;
 using UnityEngine.Networking;
 
     public class ExampleClass : MonoBehaviour
     {
         string url = @"https://dweet.io:443/get/latest/dweet/for/arduino-lviv-weather-flash";
         void Start()
         {
             StartCoroutine(GetText());
         }
     
         IEnumerator GetText()
         {
             UnityWebRequest request = UnityWebRequest.Get(url);        
             yield return request.Send();     
             Debug.Log(request.downloadHandler.text);
         }
     }

  


Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Patrickcaruso · Aug 21, 2019 at 02:09 PM

Specific education and healthy food culture It is noteworthy that Georgia does not appear in the rating of 50 countries with healthy cuisine. In the top ten of the world's healthy nutrition: Norway, Sweden, Switzerland, Denmark; Countries where schools teach the need for healthy nutrition and this education is the development of this culture, according to healthy generations. In this direction, there is little knowledge in Georgia, there is no strategy to share this type of information. According to one of the foreign approaches, cartoons are created where people try to make it easier for kids to start eating. Essemia, which has not seen orange and lemon, needs vitamin C from whale fat. Occasionally, the organism prompts us to produce products that contain the necessary substances, but appropriate medical examinations are needed to help in the absence of vital substances or the abundance of substances.

https://foodandnutritiontips.com

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

98 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity networking tutorial? 6 Answers

UnityWebRequest - login page returns a "not found" 0 Answers

Working behind a proxy on client site 0 Answers

WWW with https resulting in SSL: couldn't create a context 0 Answers

PUN vs uMMO 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges